From: Jingjing Wu Date: Wed, 8 Feb 2017 05:05:52 +0000 (+0800) Subject: net/e1000: fix bitmask of supported Tx flags X-Git-Tag: spdx-start~4526 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c65e0f76ed42567adca59d140567d4186d9bd10a;p=dpdk.git net/e1000: fix bitmask of supported Tx flags Add missed PKT_TX_IEEE1588_TMST to bitmask of all supported packet Tx flags. Fixes: 2b76648872c9 ("net/e1000: add Tx preparation") Signed-off-by: Jingjing Wu Acked-by: Konstantin Ananyev --- diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 45f3f249fd..c9cf3924f0 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -72,12 +72,18 @@ #include "base/e1000_api.h" #include "e1000_ethdev.h" +#ifdef RTE_LIBRTE_IEEE1588 +#define IGB_TX_IEEE1588_TMST PKT_TX_IEEE1588_TMST +#else +#define IGB_TX_IEEE1588_TMST 0 +#endif /* Bit Mask to indicate what bits required for building TX context */ #define IGB_TX_OFFLOAD_MASK ( \ PKT_TX_VLAN_PKT | \ PKT_TX_IP_CKSUM | \ PKT_TX_L4_MASK | \ - PKT_TX_TCP_SEG) + PKT_TX_TCP_SEG | \ + IGB_TX_IEEE1588_TMST) #define IGB_TX_OFFLOAD_NOTSUP_MASK \ (PKT_TX_OFFLOAD_MASK ^ IGB_TX_OFFLOAD_MASK)