From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 34B311E2B for ; Mon, 9 Jan 2017 16:19:32 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 09 Jan 2017 07:19:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,339,1477983600"; d="scan'208";a="28051156" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.38]) ([10.237.220.38]) by orsmga002.jf.intel.com with ESMTP; 09 Jan 2017 07:19:28 -0800 To: Shreyansh Jain , david.marchand@6wind.com References: <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-12-git-send-email-shreyansh.jain@nxp.com> Cc: dev@dpdk.org, thomas.monjalon@6wind.com From: Ferruh Yigit Message-ID: <8484fc57-baa7-0f84-bc05-49d7f4ca79ad@intel.com> Date: Mon, 9 Jan 2017 15:19:27 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1482758645-23057-12-git-send-email-shreyansh.jain@nxp.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v5 11/12] drivers: update PMDs to use rte_driver probe and remove 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, 09 Jan 2017 15:19:33 -0000 On 12/26/2016 1:24 PM, Shreyansh Jain wrote: > These callbacks now act as first layer of PCI interfaces from the Bus. > Bus probe would enter the PMDs through the rte_driver->probe/remove > callbacks, falling to rte_xxx_driver->probe/remove (Currently, all the > drivers are rte_pci_driver). > > This patch also changes QAT which is the only crypto PMD based on PCI. > All others would be changed in a separate patch focused on VDEV. > > Signed-off-by: Shreyansh Jain > --- > drivers/crypto/qat/rte_qat_cryptodev.c | 4 ++++ > drivers/net/bnx2x/bnx2x_ethdev.c | 8 ++++++++ > drivers/net/bnxt/bnxt_ethdev.c | 4 ++++ > drivers/net/cxgbe/cxgbe_ethdev.c | 4 ++++ > drivers/net/e1000/em_ethdev.c | 4 ++++ > drivers/net/e1000/igb_ethdev.c | 8 ++++++++ > drivers/net/ena/ena_ethdev.c | 4 ++++ > drivers/net/enic/enic_ethdev.c | 4 ++++ > drivers/net/fm10k/fm10k_ethdev.c | 4 ++++ > drivers/net/i40e/i40e_ethdev.c | 4 ++++ > drivers/net/i40e/i40e_ethdev_vf.c | 4 ++++ > drivers/net/ixgbe/ixgbe_ethdev.c | 8 ++++++++ > drivers/net/mlx4/mlx4.c | 3 ++- > drivers/net/mlx5/mlx5.c | 3 ++- > drivers/net/nfp/nfp_net.c | 4 ++++ > drivers/net/qede/qede_ethdev.c | 8 ++++++++ > drivers/net/szedata2/rte_eth_szedata2.c | 4 ++++ > drivers/net/thunderx/nicvf_ethdev.c | 4 ++++ > drivers/net/virtio/virtio_ethdev.c | 2 ++ > drivers/net/vmxnet3/vmxnet3_ethdev.c | 4 ++++ > 20 files changed, 90 insertions(+), 2 deletions(-) > > diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c > index 1e7ee61..bc1a9c6 100644 > --- a/drivers/crypto/qat/rte_qat_cryptodev.c > +++ b/drivers/crypto/qat/rte_qat_cryptodev.c > @@ -120,6 +120,10 @@ crypto_qat_dev_init(__attribute__((unused)) struct rte_cryptodev_driver *crypto_ > > static struct rte_cryptodev_driver rte_qat_pmd = { > .pci_drv = { > + .driver = { > + .probe = rte_eal_pci_probe, > + .remove = rte_eal_pci_remove, > + }, Since this part is common for all PCI drivers, why not make this part of RTE_PMD_REGISTER_PCI macro? <...>