From: Bruce Richardson Date: Wed, 22 Oct 2014 10:55:44 +0000 (+0100) Subject: ixgbe: remove static qualifier for thread safety X-Git-Tag: spdx-start~10226 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ed49550a71aaf45b30872897673f037443b3ff61;p=dpdk.git 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 --- 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