From ed49550a71aaf45b30872897673f037443b3ff61 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Wed, 22 Oct 2014 11:55:44 +0100 Subject: [PATCH] ixgbe: remove static qualifier for thread safety Remove the "static" prefix to the template mbuf variable in ixgbe_rxq_vec_setup function. This will then allow different threads to initialize different RX queues at the same time, without one overwriting the other's data. Signed-off-by: Bruce Richardson Acked-by: Changchun Ouyang --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c index a0d3d78232..e813e437b2 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c @@ -730,7 +730,7 @@ static struct ixgbe_txq_ops vec_txq_ops = { int ixgbe_rxq_vec_setup(struct igb_rx_queue *rxq) { - static struct rte_mbuf mb_def = { + struct rte_mbuf mb_def = { .nb_segs = 1, .data_off = RTE_PKTMBUF_HEADROOM, #ifdef RTE_MBUF_REFCNT -- 2.20.1