From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0056.outbound.protection.outlook.com [157.56.110.56]) by dpdk.org (Postfix) with ESMTP id 170CFC71E for ; Thu, 16 Jun 2016 16:06:46 +0200 (CEST) Received: from BY2PR03CA041.namprd03.prod.outlook.com (10.141.249.14) by BY2PR0301MB1623.namprd03.prod.outlook.com (10.163.28.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8; Thu, 16 Jun 2016 14:06:43 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::184) by BY2PR03CA041.outlook.office365.com (2a01:111:e400:2c5d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8 via Frontend Transport; Thu, 16 Jun 2016 14:06:43 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Thu, 16 Jun 2016 14:06:43 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5GE6Xo4026530; Thu, 16 Jun 2016 07:06:41 -0700 From: Shreyansh Jain To: CC: , , David Marchand Date: Thu, 16 Jun 2016 19:36:37 +0530 Message-ID: <1466086011-11920-4-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466086011-11920-1-git-send-email-shreyansh.jain@nxp.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> <1466086011-11920-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131105596034647050; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(97736004)(50986999)(50466002)(50226002)(6806005)(5008740100001)(104016004)(356003)(86362001)(36756003)(5003940100001)(19580405001)(110136002)(77096005)(8936002)(48376002)(2950100001)(68736007)(189998001)(229853001)(92566002)(586003)(106466001)(105606002)(76176999)(8676002)(47776003)(69596002)(19580395003)(2351001)(85426001)(81166006)(33646002)(4326007)(81156014)(11100500001)(2906002)(87936001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1623; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; CAT:NONE; LANG:en; CAT:NONE; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:qYJ9h5RuF8bh/i/tkIiUm5+4ZaX66MLQMFM1tbQ+G5/cGADTmMwB94DFpdgbiy9LHqhNHzEeXUIq2rU28t83b2dhrLnjDcXYWNsXWcgGgzyg+qiY5ysGv6ZaUzZb8vxetgDNvW38I8AARRrdhwQJXs2YyqXyu5gEQbEJnDbtb9cVsVnwaC7dTmL1oQLP11OLLHuGYR4CSP5OFQzAxJszUiE6XTFhJnytyqxuecrmxB0Pg6ivvH8FXpHK/Li+pYHm7b8cms7IqEmq8QL8Y4PWaYK1MnlxutrvzuJeYePiHGYWhxeujC27DeDi1F+RD8jALKlUJMzhHqfrYBgulCsZYv4Vi36f/omKMiVS94ci5GMARKiuBWvmQTTZvJbJIy2W+uZis/MyZwp3OWTxcGdVGJo9FvKJV0E3G35vCEAgfNGQwvcG9xQYxTo8VdqcPu5315GWiMWdhlrP7VJzZ0aoL2dhlcwTUkue63JVJ7T+YsD1FlDGlGFJGWeafqFE/WCe+bITsa5Cicb7UVtRTuyb3ITQI+P9vgTzZ3/NSyiXeIT3iAZDItlAJROevZ+NIjX7LDQuFdowaEzYjunCSwBN/g== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d7ef3ce8-3729-40cc-a2aa-08d395ef722a X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1623; 2:TsXWsV0sv2GbFsY80iQcF9iHFn3xupQ3KQroO5n6FFSgDILdVamNvgulA7SSoF952xuJtK8QXUepglg8TXJHQ9iLi7OGjC+KGYo55APJiVDWS/WNC46OZKllPOqqLDnOw0oVi9rOP+37MmzmAB/T48+CaWnUWnbObJ9drrvfdrUsVXvjjbadruB0d0h8Ta5Q; 3:RchNFK8thjdjS+2g/cpJeuCj3XJUnzgVAJuN2rI/c0aUSYuEzKcKAhE7QYkp+de14ZjuJnGhk02i5Qvmrri4J/ED4r0EAdrjBJnMLDCIvZcoeTgAlvmJO5T9ZsaPYDwsRHz1X8NscnjG5aFJhErql2jx/LsCzHCXA7/hmEuGoEJYbilizy0nOlFJiOD/q5VdJguNB9X4CzGe43AZHIf7ZxPAZvUa2vsbbYEu6vyBThc=; 25:qdH3xjz4Y7wjwadinJYVA97TYVt4d5yGYDbV01MBz9nM4rMqngbfA3ARAcx/jyjKbgyzfVn8AbDudTO/XRcDIyouP44dieIrICrJd0DR85gB3ShEnypPe/D7D3ZkISrrkgaix3eBXbZxr0ZAqs8ZFRK2frC4JfTZ06O7Fb1ngAmKQIiz0z5lIzz0tpSqfA5PLwiRrXrX7m/SGCmppXisKd+QVHL2XroiFJg4nQe4CmnQXSpBQ43uuYXnG9bbB8lC/bL/gYxSlEyDC2hgDwtdZXiKPLbwagKj2cA+pu5OAfSuPqqb7YMnbK6xGM09ScMb39YUHnmmRzbX/K0jtSP5Aw/Od11dS1BKUOMYrL18hoX2vUe7DdPeeYkRXiPC1Z5XOjBUH92Bz65w7keQJB77I2MJE651YICiM82jfgnTtsI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1623; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(13015025)(13017025)(13023025)(13018025)(13024025)(10201501046)(3002001)(6055026); SRVR:BY2PR0301MB1623; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB1623; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1623; 4:AVhpb1BJIFZygQyE2gydr3IAeoIjMTkNKR9v9/G57BgR0jhxAnt5DEK1LV5xW9bKpSXl6ixRtAgHaNycBDv25l7CEwIhsWhTe7aX+KDIviv4M16VpZ/RAFhD8ZFNS3wOs4sY5wZ2ZHWJ+oJMyQb2CTRLWNxJBaIBxk+a3Uce9PaLWSTkzetx4Qjo64jeJZGW8d6kPn0ZOj4LRiIC2F5jmZWmzbdI+wWwoxo1hdRVBm3JT9miSmpPXbXj6WmGzv47qzXv/sYz0kW3iRefBkRHlmjR9z29e28cpD3+6Fy+gkBSQyfuCwgGuQLyCIXxx8q+D12DXYBqsZqGUWJ0hui0CUY+aCZxJ4f0cvOggpjdYyfXWuVoWV01b0MF3XcbX4/U9iVWxDIu+uZFOs8GYa2FP4QEjTt72SJFswngrsEiZ6lG5rv42x0jTs1aYCST1I3L44P/9h6qxir/IJtG1rAt6Y3IM75BC9mt5MGISubbqI4= X-Forefront-PRVS: 09752BC779 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1623; 23:KxcCYlHVzc+WwANT8y6STIsjpu1hYXgBqheWN4S?= =?us-ascii?Q?FOgZ6kpW9UrkwcH6ZpJMF4UZ5A4rmpDt5yxU7WLJ0ZHqEZ1IM8EwLg7HpLBg?= =?us-ascii?Q?jr0hb+ZX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FuMF89ZDPWw== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2016 14:06:43.3555 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1623 Subject: [dpdk-dev] [PATCH v3 03/17] drivers: align pci driver definitions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2016 14:06:47 -0000 From: David Marchand Pure coding style, but it might make it easier later if we want to move fields in rte_cryptodev_driver and eth_driver structures. Signed-off-by: David Marchand --- drivers/crypto/qat/rte_qat_cryptodev.c | 2 +- drivers/net/ena/ena_ethdev.c | 2 +- drivers/net/nfp/nfp_net.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c index a7912f5..08496ab 100644 --- a/drivers/crypto/qat/rte_qat_cryptodev.c +++ b/drivers/crypto/qat/rte_qat_cryptodev.c @@ -116,7 +116,7 @@ crypto_qat_dev_init(__attribute__((unused)) struct rte_cryptodev_driver *crypto_ } static struct rte_cryptodev_driver rte_qat_pmd = { - { + .pci_drv = { .name = "rte_qat_pmd", .id_table = pci_id_qat_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING, diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index e157587..8d01e9a 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1427,7 +1427,7 @@ static uint16_t eth_ena_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, } static struct eth_driver rte_ena_pmd = { - { + .pci_drv = { .name = "rte_ena_pmd", .id_table = pci_id_ena_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING, diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 5c9f350..ef7011e 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2463,7 +2463,7 @@ static struct rte_pci_id pci_id_nfp_net_map[] = { }; static struct eth_driver rte_nfp_net_pmd = { - { + .pci_drv = { .name = "rte_nfp_net_pmd", .id_table = pci_id_nfp_net_map, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | -- 2.7.4