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/bnx2x: replace macro with static function
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user_ethdev.c
diff --git
a/drivers/net/virtio/virtio_user_ethdev.c
b/drivers/net/virtio/virtio_user_ethdev.c
index
a52a140
..
6fcedd9
100644
(file)
--- a/
drivers/net/virtio/virtio_user_ethdev.c
+++ b/
drivers/net/virtio/virtio_user_ethdev.c
@@
-331,7
+331,7
@@
virtio_user_eth_dev_free(struct rte_eth_dev *eth_dev)
* Returns 0 on success.
*/
static int
* Returns 0 on success.
*/
static int
-virtio_user_pmd_
devinit
(const char *name, const char *params)
+virtio_user_pmd_
probe
(const char *name, const char *params)
{
struct rte_kvargs *kvlist = NULL;
struct rte_eth_dev *eth_dev;
{
struct rte_kvargs *kvlist = NULL;
struct rte_eth_dev *eth_dev;
@@
-445,7
+445,7
@@
end:
/** Called by rte_eth_dev_detach() */
static int
/** Called by rte_eth_dev_detach() */
static int
-virtio_user_pmd_
devuninit
(const char *name)
+virtio_user_pmd_
remove
(const char *name)
{
struct rte_eth_dev *eth_dev;
struct virtio_hw *hw;
{
struct rte_eth_dev *eth_dev;
struct virtio_hw *hw;
@@
-474,8
+474,8
@@
virtio_user_pmd_devuninit(const char *name)
}
static struct rte_vdev_driver virtio_user_driver = {
}
static struct rte_vdev_driver virtio_user_driver = {
- .
init = virtio_user_pmd_devinit
,
- .
uninit = virtio_user_pmd_devuninit
,
+ .
probe = virtio_user_pmd_probe
,
+ .
remove = virtio_user_pmd_remove
,
};
DRIVER_REGISTER_VDEV(net_virtio_user, virtio_user_driver);
};
DRIVER_REGISTER_VDEV(net_virtio_user, virtio_user_driver);