From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=yohsLdzErfFxMDJtvH zlRun7vAE7DzVc0a2OPZXlQHY=; b=juH8/vKBAoLr+FTFW4vIxwA851SF9OpUW3 UtDAHGhe5xAM2Zewolr3Q1t2JQwqdXxVlFSQfx4Sp6s3lCxNq9B1s5boP93mW6Sv TYU8C0DpiDQ1tIYN9KDa5sGb1VPhpvl+b5/mxoP4TKKrbX0wu96x+Usb3AgvgzEf AbHO6FPQI= Received: from localhost.localdomain (unknown [183.247.84.222]) by smtp2 (Coremail) with SMTP id DMmowACHfKUr+KpYKDzUCw--.5393S3; Mon, 20 Feb 2017 22:07:58 +0800 (CST) From: hanxueluo@126.com To: dev@dpdk.org Cc: Huanle Han Date: Mon, 20 Feb 2017 22:04:45 +0800 Message-Id: <1487599487-12574-1-git-send-email-hanxueluo@126.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: DMmowACHfKUr+KpYKDzUCw--.5393S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrKFWrCF1fJw15AF4xWw4rXwb_yoW3KFg_Gr WFvr9rZF15AFnFyrWI9rn5ZryakanYgF1DX34aqryFqw4UC3W8Xr12vrsrKFnrW3WUArW7 Ars5Xwn0v3sakjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU00ksDUUUUU== X-Originating-IP: [183.247.84.222] X-CM-SenderInfo: xkdq53phox0qqrswhudrp/1tbijB6E51WfoV-RuQAAst Subject: [dpdk-dev] [PATCH 1/3] net/virtio: fix dev detachable flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2017 14:08:02 -0000 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