From: Jingjing Wu Date: Wed, 8 Feb 2017 05:05:50 +0000 (+0800) Subject: net/i40e: fix bitmask of supported Tx flags X-Git-Tag: spdx-start~4528 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2e91b6ced7d495081fbdd32eab234120107b4018;p=dpdk.git net/i40e: fix bitmask of supported Tx flags PKT_TX_TUNNEL_MASK and PKT_TX_IEEE1588_TMST are missed in bitmask of all supported packet Tx flags by i40e. It will cause packet preparing fail when sending tunnel packets with Tx offload. This patch fixes it. Fixes: 3f33e643e5c6 ("net/i40e: add Tx preparation") Signed-off-by: Jingjing Wu Acked-by: Konstantin Ananyev --- diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 608685fa22..48429cc7c9 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -75,6 +75,12 @@ #define I40E_TXD_CMD (I40E_TX_DESC_CMD_EOP | I40E_TX_DESC_CMD_RS) +#ifdef RTE_LIBRTE_IEEE1588 +#define I40E_TX_IEEE1588_TMST PKT_TX_IEEE1588_TMST +#else +#define I40E_TX_IEEE1588_TMST 0 +#endif + #define I40E_TX_CKSUM_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \ PKT_TX_L4_MASK | \ @@ -87,7 +93,9 @@ PKT_TX_OUTER_IP_CKSUM | \ PKT_TX_TCP_SEG | \ PKT_TX_QINQ_PKT | \ - PKT_TX_VLAN_PKT) + PKT_TX_VLAN_PKT | \ + PKT_TX_TUNNEL_MASK | \ + I40E_TX_IEEE1588_TMST) #define I40E_TX_OFFLOAD_NOTSUP_MASK \ (PKT_TX_OFFLOAD_MASK ^ I40E_TX_OFFLOAD_MASK)