From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 8FE518D88 for ; Fri, 4 Sep 2015 13:02:01 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 04 Sep 2015 04:02:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,468,1437462000"; d="scan'208";a="797702484" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 04 Sep 2015 04:02:00 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t84B1wA5021327; Fri, 4 Sep 2015 12:01:58 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id t84B1w9X024942; Fri, 4 Sep 2015 12:01:58 +0100 Received: (from bairemon@localhost) by sivswdev01.ir.intel.com with id t84B1vR5024938; Fri, 4 Sep 2015 12:01:57 +0100 From: Bernard Iremonger To: dev@dpdk.org Date: Fri, 4 Sep 2015 12:01:36 +0100 Message-Id: <1441364514-24905-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: Subject: [dpdk-dev] [RFC PATCH 00/18] refactor eal driver registration code 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: Fri, 04 Sep 2015 11:02:02 -0000 At present the eal driver registration code is more complicated than it needs to be. This RFC proposes to simplify the eal driver registration code. Remove the type field from the eal driver structure. Refactor the eal driver registration code to use the name field in the eal driver structure instead of the type field. Modify all PMD's to use the modified eal driver structure. Initialise the name field in the eal driver structure in some PMD's where it is not initialised at present. Bernard Iremonger (18): librte_eal: remove type field from rte_driver structure. af_packet: remove type field from rte_driver structure bnx2x: remove type field and initialise name field in rte_driver structure bonding: remove type field from rte_driver structure cxgbe: remove type field from rte_driver structure e1000: remove type field and initialise name field in rte_driver structures enic: remove type field and initialise name field in rte_driver structure fm10k: remove type field and initialise name field in rte_driver structure i40e: remove type field and initialise name field in rte_driver structures ixgbe: remove type field and initialise name field in rte_driver structure mlx4: remove type field from rte_driver structure mpipe: remove type field and update name in rte_driver structure null: remove type field from rte_driver structure pcap: remove type field from rte_driver structure ring: remove type field from rte_driver structure virtio_ethdev: remove type field and initialise name field in rte_driver structure vmxnet3: remove type field and initialise name field in rte_driver structure xenvirt: remove type field from rte_driver structure drivers/net/af_packet/rte_eth_af_packet.c | 5 ++--- drivers/net/bnx2x/bnx2x_ethdev.c | 5 +++-- drivers/net/bonding/rte_eth_bond_pmd.c | 3 +-- drivers/net/cxgbe/cxgbe_ethdev.c | 4 ++-- drivers/net/e1000/em_ethdev.c | 2 +- drivers/net/e1000/igb_ethdev.c | 4 ++-- drivers/net/enic/enic_ethdev.c | 3 ++- drivers/net/fm10k/fm10k_ethdev.c | 2 +- drivers/net/i40e/i40e_ethdev.c | 2 +- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++-- drivers/net/mlx4/mlx4.c | 4 ++-- drivers/net/mpipe/mpipe_tilegx.c | 7 +++---- drivers/net/null/rte_eth_null.c | 3 +-- drivers/net/pcap/rte_eth_pcap.c | 3 +-- drivers/net/ring/rte_eth_ring.c | 3 +-- drivers/net/virtio/virtio_ethdev.c | 2 +- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +- drivers/net/xenvirt/rte_eth_xenvirt.c | 5 ++--- lib/librte_eal/common/eal_common_dev.c | 22 +++++++++++++--------- lib/librte_eal/common/include/rte_dev.h | 11 +---------- 21 files changed, 44 insertions(+), 54 deletions(-) -- 1.9.1