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 02F4AF612 for ; Sat, 4 Feb 2017 04:38:19 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 03 Feb 2017 19:38:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,332,1477983600"; d="scan'208";a="816904993" Received: from dpdk2.sh.intel.com ([10.239.128.246]) by FMSMGA003.fm.intel.com with ESMTP; 03 Feb 2017 19:38:18 -0800 From: Jingjing Wu To: dev@dpdk.org Cc: jingjing.wu@intel.com, wenzhuo.lu@intel.com Date: Sat, 4 Feb 2017 11:36:14 +0800 Message-Id: <1486179375-133509-5-git-send-email-jingjing.wu@intel.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1486179375-133509-1-git-send-email-jingjing.wu@intel.com> References: <1485258650-86193-1-git-send-email-jingjing.wu@intel.com> <1486179375-133509-1-git-send-email-jingjing.wu@intel.com> Subject: [dpdk-dev] [PATCH v2 4/5] net/e1000: fix bitmask of supported Tx 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: , X-List-Received-Date: Sat, 04 Feb 2017 03:38:20 -0000 Add missed flags to bitmask of all supported packet Tx flags. CC: wenzhuo.lu@intel.com Fixes: 2b76648872c9 ("net/e1000: add Tx preparation") Signed-off-by: Jingjing Wu --- drivers/net/e1000/igb_rxtx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 45f3f24..a478a00 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -73,11 +73,22 @@ #include "e1000_ethdev.h" /* Bit Mask to indicate what bits required for building TX context */ +#ifdef RTE_LIBRTE_IEEE1588 #define IGB_TX_OFFLOAD_MASK ( \ PKT_TX_VLAN_PKT | \ PKT_TX_IP_CKSUM | \ + PKT_TX_IPV4 | \ PKT_TX_L4_MASK | \ + PKT_TX_IEEE1588_TMST | \ PKT_TX_TCP_SEG) +#else +#define IGB_TX_OFFLOAD_MASK ( \ + PKT_TX_VLAN_PKT | \ + PKT_TX_IPV4 | \ + PKT_TX_IP_CKSUM | \ + PKT_TX_L4_MASK | \ + PKT_TX_TCP_SEG) +#endif #define IGB_TX_OFFLOAD_NOTSUP_MASK \ (PKT_TX_OFFLOAD_MASK ^ IGB_TX_OFFLOAD_MASK) -- 2.4.11