From: Jingjing Wu Date: Wed, 8 Feb 2017 05:05:51 +0000 (+0800) Subject: net/ixgbe: fix bitmask of supported Tx flags X-Git-Tag: spdx-start~4527 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=859a17db7ea22bff16ae142574562311bdd7d98b;p=dpdk.git net/ixgbe: fix bitmask of supported Tx flags Add missed PKT_TX_IEEE1588_TMST to bitmask of all supported packet Tx flags. Fixes: 7829b8d52be0 ("net/ixgbe: add Tx preparation") Signed-off-by: Jingjing Wu Acked-by: Konstantin Ananyev --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 36f1c02003..4d71992608 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -80,6 +80,11 @@ #include "base/ixgbe_common.h" #include "ixgbe_rxtx.h" +#ifdef RTE_LIBRTE_IEEE1588 +#define IXGBE_TX_IEEE1588_TMST PKT_TX_IEEE1588_TMST +#else +#define IXGBE_TX_IEEE1588_TMST 0 +#endif /* Bit Mask to indicate what bits required for building TX context */ #define IXGBE_TX_OFFLOAD_MASK ( \ PKT_TX_VLAN_PKT | \ @@ -87,7 +92,8 @@ PKT_TX_L4_MASK | \ PKT_TX_TCP_SEG | \ PKT_TX_MACSEC | \ - PKT_TX_OUTER_IP_CKSUM) + PKT_TX_OUTER_IP_CKSUM | \ + IXGBE_TX_IEEE1588_TMST) #define IXGBE_TX_OFFLOAD_NOTSUP_MASK \ (PKT_TX_OFFLOAD_MASK ^ IXGBE_TX_OFFLOAD_MASK)