From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8DF325A13 for ; Thu, 31 Dec 2015 14:53:34 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 31 Dec 2015 05:53:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,503,1444719600"; d="scan'208";a="21744888" Received: from dpdk06.sh.intel.com ([10.239.128.225]) by fmsmga004.fm.intel.com with ESMTP; 31 Dec 2015 05:53:32 -0800 From: Jianfeng Tan To: dev@dpdk.org Date: Thu, 31 Dec 2015 14:53:07 +0800 Message-Id: <1451544799-70776-1-git-send-email-jianfeng.tan@intel.com> X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH 00/12] Add API to get packet type info 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, 31 Dec 2015 13:53:35 -0000 HAPPRY NEW YEAR! A new ether API rte_eth_dev_get_ptype_info() is added to query what packet type information will be provided by current pmd driver of the specifed port. To achieve this, a new function pointer, dev_ptype_info_get, is added into struct eth_dev_ops. For those devices who do not implement it, it means it will not provide any ptype info. Jianfeng Tan (12): ethdev: add API to query what/if packet type is set pmd/cxgbe: add dev_ptype_info_get implementation pmd/e1000: add dev_ptype_info_get implementation pmd/enic: add dev_ptype_info_get implementation pmd/fm10k: add dev_ptype_info_get implementation pmd/i40e: add dev_ptype_info_get implementation pmd/ixgbe: add dev_ptype_info_get implementation pmd/mlx4: add dev_ptype_info_get implementation pmd/mlx5: add dev_ptype_info_get implementation pmd/nfp: add dev_ptype_info_get implementation pmd/vmxnet3: add dev_ptype_info_get implementation examples/l3fwd: add option to parse ptype drivers/net/cxgbe/cxgbe_ethdev.c | 17 +++++++ drivers/net/e1000/igb_ethdev.c | 48 ++++++++++++++++++++ drivers/net/enic/enic_ethdev.c | 20 +++++++++ drivers/net/fm10k/fm10k_ethdev.c | 60 +++++++++++++++++++++++++ drivers/net/fm10k/fm10k_rxtx.c | 5 +++ drivers/net/fm10k/fm10k_rxtx_vec.c | 5 +++ drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_ethdev_vf.c | 1 + drivers/net/i40e/i40e_rxtx.c | 69 ++++++++++++++++++++++++++++- drivers/net/i40e/i40e_rxtx.h | 2 + drivers/net/ixgbe/ixgbe_ethdev.c | 50 +++++++++++++++++++++ drivers/net/ixgbe/ixgbe_ethdev.h | 2 + drivers/net/ixgbe/ixgbe_rxtx.c | 5 ++- drivers/net/mlx4/mlx4.c | 27 +++++++++++ drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_ethdev.c | 25 +++++++++++ drivers/net/mlx5/mlx5_rxtx.c | 2 + drivers/net/nfp/nfp_net.c | 18 ++++++++ drivers/net/vmxnet3/vmxnet3_ethdev.c | 20 +++++++++ examples/l3fwd/main.c | 86 ++++++++++++++++++++++++++++++++++++ lib/librte_ether/rte_ethdev.c | 12 +++++ lib/librte_ether/rte_ethdev.h | 22 +++++++++ lib/librte_mbuf/rte_mbuf.h | 13 ++++++ 24 files changed, 511 insertions(+), 2 deletions(-) -- 2.1.4