From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 721C337A8 for ; Wed, 20 Apr 2016 13:44:26 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id u206so76777364wme.1 for ; Wed, 20 Apr 2016 04:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mmzaWGRHPJZXrPFhy7uEwHzd+DGYC1d4qw78QfOa98M=; b=fzoCv0m8RZo9QK+FtkmMN1JVkfufYIzusALXUYPmzUSwMqnOk6/YtgXK3AcbFrcpJx l2jPw/gpM3f/uB6IntdNMMh+CK+WPPXKj3N50E3bOvydUe4lRNfEsksDurCfVulu4M6A H8JeOX/SuAR0d1yB+fQW++mTNlqT6CF3vw4stMmyZ45EBGUfxSovTjXDiWiCsPpVD2n6 SAOSLi1DPWD0k27yUW6fRqjvq/+ed4w+c6IjMq7SAoktERQXdVe43zzZ+qMVDLXAlbJu y2FleKLUBriKtfBLO2e+gnjyKUFAdwWKmGPsx1AG9kMk7zSIbAacVRbYJ6KzgAwr3vzI d5sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mmzaWGRHPJZXrPFhy7uEwHzd+DGYC1d4qw78QfOa98M=; b=AB1gdX3F6R5PKNUw/6Ijbjod+VkPwAa9dO/SXsUPvvvmJlzpTWW4xOG9XRwFjh4XBn 5CeM6961NyZP486WXLFRPPafmKT2+/3/MDdXsT3467d5opVYqL7a43YOO8Gle9pYXg/+ q9bf5/g2aV9E7xhVTjV5zJH/BVsAZFbVGS9yp8Y7QqO5sOuPq3r2mGaKt6lCF7bLct35 R52HN/xM2RMu1Pt6fownWROOKXXrTCxiGLV+j88IeeLUdwabX4CaH6C9rq41+UPx2IIE yHkVyICvfu1GvsMBUgPNgST1DbHFCVQ6NV0fomCwQPyAblXbCifMp8FRKCBHQP2C34Y6 XqaA== X-Gm-Message-State: AOPr4FVrtFKWmbSAGaK/LWoT5lUGYXca/asTbmX+biCnVwj34k1mloKaCkPX2LXP7g8ZjHN9 X-Received: by 10.194.86.106 with SMTP id o10mr8543374wjz.70.1461152666327; Wed, 20 Apr 2016 04:44:26 -0700 (PDT) Received: from gloops.dev.6wind.com (144.77.126.78.rev.sfr.net. [78.126.77.144]) by smtp.gmail.com with ESMTPSA id m6sm5195708wje.21.2016.04.20.04.44.24 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 04:44:25 -0700 (PDT) From: David Marchand To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, viktorin@rehivetech.com Date: Wed, 20 Apr 2016 13:44:03 +0200 Message-Id: <1461152657-19969-4-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461152657-19969-1-git-send-email-david.marchand@6wind.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> <1461152657-19969-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v2 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: Wed, 20 Apr 2016 11:44:26 -0000 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 02af67a..fbc96ae 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1429,7 +1429,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 bcf5fa9..fb23b74 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2474,7 +2474,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, -- 1.9.1