From patchwork Tue Jan 24 11:47:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingjing Wu X-Patchwork-Id: 19939 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C751C108D; Tue, 24 Jan 2017 12:49:35 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 4050B282 for ; Tue, 24 Jan 2017 12:49:32 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 24 Jan 2017 03:49:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.33,278,1477983600"; d="scan'208"; a="1098186761" Received: from dpdk2.sh.intel.com ([10.239.128.246]) by fmsmga001.fm.intel.com with ESMTP; 24 Jan 2017 03:49:31 -0800 From: Jingjing Wu To: dev@dpdk.org Cc: jingjing.wu@intel.com Date: Tue, 24 Jan 2017 19:47:33 +0800 Message-Id: <1485258454-86107-1-git-send-email-jingjing.wu@intel.com> X-Mailer: git-send-email 2.4.11 Subject: [dpdk-dev] [PATCH 1/2] mbuf: fix bitmask of Tx offload flags 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Some Tx offload flags are missed in Bitmask of all supported packet Tx offload features flags. This patch fixes it. Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation") Signed-off-by: Jingjing Wu --- lib/librte_mbuf/rte_mbuf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index bfce9f4..e57a4d2 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -295,8 +295,12 @@ extern "C" { */ #define PKT_TX_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \ + PKT_TX_IPV4 | \ + PKT_TX_IPV6 | \ PKT_TX_L4_MASK | \ PKT_TX_OUTER_IP_CKSUM | \ + PKT_TX_OUTER_IPV4 | \ + PKT_TX_OUTER_IPV6 | \ PKT_TX_TCP_SEG | \ PKT_TX_QINQ_PKT | \ PKT_TX_VLAN_PKT | \