git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/qede/base: add LLDP support
[dpdk.git]
/
drivers
/
net
/
vhost
/
rte_eth_vhost.c
diff --git
a/drivers/net/vhost/rte_eth_vhost.c
b/drivers/net/vhost/rte_eth_vhost.c
index
ebcfb28
..
04179b4
100644
(file)
--- a/
drivers/net/vhost/rte_eth_vhost.c
+++ b/
drivers/net/vhost/rte_eth_vhost.c
@@
-105,7
+105,7
@@
struct vhost_queue {
rte_atomic32_t while_queuing;
struct pmd_internal *internal;
struct rte_mempool *mb_pool;
rte_atomic32_t while_queuing;
struct pmd_internal *internal;
struct rte_mempool *mb_pool;
- uint
8
_t port;
+ uint
16
_t port;
uint16_t virtqueue_id;
struct vhost_stats stats;
};
uint16_t virtqueue_id;
struct vhost_stats stats;
};
@@
-607,7
+607,8
@@
new_device(int vid)
RTE_LOG(INFO, PMD, "New connection established\n");
RTE_LOG(INFO, PMD, "New connection established\n");
- _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC, NULL);
+ _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC,
+ NULL, NULL);
return 0;
}
return 0;
}
@@
-661,7
+662,8
@@
destroy_device(int vid)
RTE_LOG(INFO, PMD, "Connection closed\n");
RTE_LOG(INFO, PMD, "Connection closed\n");
- _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC, NULL);
+ _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC,
+ NULL, NULL);
}
static int
}
static int
@@
-690,7
+692,8
@@
vring_state_changed(int vid, uint16_t vring, int enable)
RTE_LOG(INFO, PMD, "vring%u is %s\n",
vring, enable ? "enabled" : "disabled");
RTE_LOG(INFO, PMD, "vring%u is %s\n",
vring, enable ? "enabled" : "disabled");
- _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_QUEUE_STATE, NULL);
+ _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_QUEUE_STATE,
+ NULL, NULL);
return 0;
}
return 0;
}
@@
-702,7
+705,7
@@
static struct vhost_device_ops vhost_ops = {
};
int
};
int
-rte_eth_vhost_get_queue_event(uint
8
_t port_id,
+rte_eth_vhost_get_queue_event(uint
16
_t port_id,
struct rte_eth_vhost_queue_event *event)
{
struct rte_vhost_vring_state *state;
struct rte_eth_vhost_queue_event *event)
{
struct rte_vhost_vring_state *state;
@@
-739,7
+742,7
@@
rte_eth_vhost_get_queue_event(uint8_t port_id,
}
int
}
int
-rte_eth_vhost_get_vid_from_port_id(uint
8
_t port_id)
+rte_eth_vhost_get_vid_from_port_id(uint
16
_t port_id)
{
struct internal_list *list;
struct rte_eth_dev *eth_dev;
{
struct internal_list *list;
struct rte_eth_dev *eth_dev;