ethdev: add namespace
[dpdk.git] / drivers / net / iavf / iavf_rxtx_vec_avx512.c
index 12375d3..b8f2f69 100644 (file)
@@ -1141,7 +1141,7 @@ _iavf_recv_raw_pkts_vec_avx512_flex_rxd(struct iavf_rx_queue *rxq,
                         * needs to load 2nd 16B of each desc for RSS hash parsing,
                         * will cause performance drop to get into this context.
                         */
-                       if (offloads & DEV_RX_OFFLOAD_RSS_HASH ||
+                       if (offloads & RTE_ETH_RX_OFFLOAD_RSS_HASH ||
                            rxq->rx_flags & IAVF_RX_FLAGS_VLAN_TAG_LOC_L2TAG2_2) {
                                /* load bottom half of every 32B desc */
                                const __m128i raw_desc_bh7 =
@@ -1193,7 +1193,7 @@ _iavf_recv_raw_pkts_vec_avx512_flex_rxd(struct iavf_rx_queue *rxq,
                                                (_mm256_castsi128_si256(raw_desc_bh0),
                                                 raw_desc_bh1, 1);
 
-                               if (offloads & DEV_RX_OFFLOAD_RSS_HASH) {
+                               if (offloads & RTE_ETH_RX_OFFLOAD_RSS_HASH) {
                                        /**
                                         * to shift the 32b RSS hash value to the
                                         * highest 32b of each 128b before mask
@@ -1721,7 +1721,7 @@ iavf_tx_free_bufs_avx512(struct iavf_tx_queue *txq)
        txep = (void *)txq->sw_ring;
        txep += txq->next_dd - (n - 1);
 
-       if (txq->offloads & DEV_TX_OFFLOAD_MBUF_FAST_FREE && (n & 31) == 0) {
+       if (txq->offloads & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE && (n & 31) == 0) {
                struct rte_mempool *mp = txep[0].mbuf->pool;
                struct rte_mempool_cache *cache = rte_mempool_default_cache(mp,
                                                                rte_lcore_id());