From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jianfeng Tan Subject: [PATCH] net/virtio-user: fix missing driver name Date: Wed, 18 Jan 2017 11:44:09 +0000 Message-ID: <1484739849-72803-1-git-send-email-jianfeng.tan@intel.com> Cc: yuanhan.liu@intel.com, Jianfeng Tan , stable@dpdk.org To: dev@dpdk.org Return-path: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" API rte_eth_dev_info_get() fills driver name according to drv_name of rte_eth_dev_data. But we have not fill such info in virtio_user. We do not use the same one with virtio device as some applications might depend on driver name to differetiate kinds of devices, such as VPP. Fixes: e9efa4d93821 ("net/virtio-user: add new virtual PCI driver") CC: stable@dpdk.org Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_user_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index c877968..110f6a9 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -312,6 +312,7 @@ virtio_user_eth_dev_alloc(const char *name) hw->use_simple_rxtx = 0; hw->virtio_user_dev = dev; data->dev_private = hw; + data->drv_name = "virtio_user PMD"; data->numa_node = SOCKET_ID_ANY; data->kdrv = RTE_KDRV_NONE; data->dev_flags = RTE_ETH_DEV_DETACHABLE; -- 2.7.4