From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH] cxgbe: explictly mark this as pci_driver Date: Wed, 2 Dec 2015 14:16:18 -0800 Message-ID: <1449094578-1562-1-git-send-email-stephen@networkplumber.org> Cc: dev@dpdk.org To: rahul.lakkireddy@chelsio.com Return-path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id BED908E70 for ; Wed, 2 Dec 2015 23:16:13 +0100 (CET) Received: by pacdm15 with SMTP id dm15so52400279pac.3 for ; Wed, 02 Dec 2015 14:16:13 -0800 (PST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The upcoming Hyper-V driver converts the pci_drv element in struct eth_driver to a union. When vmbus is added the pci_drv needs to be explicit. Easier to fix the issue ahead of time. This is backwards compatiable with previous code. Signed-off-by: Stephen Hemminger --- drivers/net/cxgbe/cxgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c index ec5d22b..97ef152 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe/cxgbe_ethdev.c @@ -847,7 +847,7 @@ out_free_adapter: } static struct eth_driver rte_cxgbe_pmd = { - { + .pci_drv = { .name = "rte_cxgbe_pmd", .id_table = cxgb4_pci_tbl, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, -- 2.1.4