From mboxrd@z Thu Jan 1 00:00:00 1970 From: hanxueluo@126.com Subject: [PATCH 1/3] net/virtio: fix dev detachable flag Date: Mon, 20 Feb 2017 22:04:45 +0800 Message-ID: <1487599487-12574-1-git-send-email-hanxueluo@126.com> Cc: Huanle Han To: dev@dpdk.org Return-path: Received: from m15-112.126.com (m15-112.126.com [220.181.15.112]) by dpdk.org (Postfix) with ESMTP id 1A2B05589 for ; Mon, 20 Feb 2017 15:08:00 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Huanle Han The dev detachable flag was removed by commit f229eb4 ("net/virtio: fix rewriting LSC flag"). Signed-off-by: Huanle Han --- drivers/net/virtio/virtio_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 4dc03b9..8465e1a 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1336,6 +1336,7 @@ virtio_init_device(struct rte_eth_dev *eth_dev, uint64_t req_features) if (eth_dev->device) { pci_dev = RTE_DEV_TO_PCI(eth_dev->device); rte_eth_copy_pci_info(eth_dev, pci_dev); + eth_dev->data->dev_flags |= RTE_ETH_DEV_DETACHABLE; } /* If host does not support status then disable LSC */ -- 2.7.4