diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c index f70ea5a712..c7548fcd63 100644 --- a/lib/librte_pmd_e1000/igb_rxtx.c +++ b/lib/librte_pmd_e1000/igb_rxtx.c @@ -336,8 +336,8 @@ eth_igb_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t tx_last; uint16_t nb_tx; uint16_t tx_ol_req; - uint32_t new_ctx; - uint32_t ctx; + uint32_t new_ctx = 0; + uint32_t ctx = 0; uint32_t vlan_macip_lens; txq = tx_queue; diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index 30a3aafb29..2cc2090d37 100755 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -686,7 +686,7 @@ ixgbe_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_used; uint16_t tx_ol_req; uint32_t vlan_macip_lens; - uint32_t ctx; + uint32_t ctx = 0; uint32_t new_ctx; txq = tx_queue;