From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 37ED01F5 for ; Thu, 29 Jan 2015 04:16:16 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 28 Jan 2015 19:12:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,484,1418112000"; d="scan'208";a="677771548" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 28 Jan 2015 19:16:14 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t0T3GApY027055; Thu, 29 Jan 2015 11:16:10 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t0T3G86h012677; Thu, 29 Jan 2015 11:16:10 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0T3G7di012673; Thu, 29 Jan 2015 11:16:07 +0800 From: Helin Zhang To: dev@dpdk.org Date: Thu, 29 Jan 2015 11:15:48 +0800 Message-Id: <1422501365-12643-1-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1421637666-16872-1-git-send-email-helin.zhang@intel.com> References: <1421637666-16872-1-git-send-email-helin.zhang@intel.com> Subject: [dpdk-dev] [PATCH 00/17] unified packet type 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, 29 Jan 2015 03:16:16 -0000 Currently only 6 bits which are stored in ol_flags are used to indicate the packet types. This is not enough, as some NIC hardware can recognize quite a lot of packet types, e.g i40e hardware can recognize more than 150 packet types. Hiding those packet types hides hardware offload capabilities which could be quite useful for improving performance and for end users. So an unified packet types are needed to support all possible PMDs. Recently a 16 bits packet_type field has been added in mbuf header which can be used for this purpose. In addition, all packet types stored in ol_flag field should be deleted at all, and 6 bits of ol_flags can be save as the benifit. Initially, 16 bits of packet_type can be divided into several sub fields to indicate different packet type information of a packet. The initial design is to divide those bits into 4 fields for L3 types, tunnel types, inner L3 types and L4 types. All PMDs should translate the offloaded packet types into this 4 fields of information, for user applications. Helin Zhang (17): mbuf: add definitions of unified packet types e1000: support of unified packet type ixgbe: support of unified packet type ixgbe: support of unified packet type i40e: support of unified packet type bond: support of unified packet type enic: support of unified packet type vmxnet3: support of unified packet type app/test-pipeline: support of unified packet type app/test-pmd: support of unified packet type app/test: support of unified packet type examples/ip_fragmentation: support of unified packet type examples/ip_reassembly: support of unified packet type examples/l3fwd-acl: support of unified packet type examples/l3fwd-power: support of unified packet type examples/l3fwd: support of unified packet type mbuf: remove old packet type bit masks for ol_flags app/test-pipeline/pipeline_hash.c | 4 +- app/test-pmd/csumonly.c | 6 +- app/test-pmd/rxonly.c | 9 +- app/test/packet_burst_generator.c | 10 +- examples/ip_fragmentation/main.c | 7 +- examples/ip_reassembly/main.c | 7 +- examples/l3fwd-acl/main.c | 19 +- examples/l3fwd-power/main.c | 5 +- examples/l3fwd/main.c | 64 +-- lib/librte_mbuf/rte_mbuf.c | 6 - lib/librte_mbuf/rte_mbuf.h | 84 +++- lib/librte_pmd_bond/rte_eth_bond_pmd.c | 9 +- lib/librte_pmd_e1000/igb_rxtx.c | 95 +++- lib/librte_pmd_enic/enic_main.c | 14 +- lib/librte_pmd_i40e/i40e_rxtx.c | 778 +++++++++++++++++++++------------ lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 141 ++++-- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 39 +- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 4 +- 18 files changed, 865 insertions(+), 436 deletions(-) -- 1.8.1.4