ixgbe: remove static qualifier for thread safety
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 22 Oct 2014 10:55:44 +0000 (11:55 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 29 Oct 2014 23:33:33 +0000 (00:33 +0100)
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 <bruce.richardson@intel.com>
Acked-by: Changchun Ouyang <Changchun.ouyang@intel.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c

index a0d3d78..e813e43 100644 (file)
@@ -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