net/bnxt: fix unnecessary delay in port stop
[dpdk.git] / drivers / net / ice / ice_rxtx_vec_sse.c
index dafcb08..9d5f1f1 100644 (file)
@@ -22,7 +22,7 @@ ice_rxq_rearm(struct ice_rx_queue *rxq)
                                          RTE_PKTMBUF_HEADROOM);
        __m128i dma_addr0, dma_addr1;
 
-       rxdp = (union ice_rx_flex_desc *)rxq->rx_ring + rxq->rxrearm_start;
+       rxdp = rxq->rx_ring + rxq->rxrearm_start;
 
        /* Pull 'n' more MBUFs into the software ring */
        if (rte_mempool_get_bulk(rxq->mp,
@@ -230,7 +230,7 @@ _ice_recv_raw_pkts_vec(struct ice_rx_queue *rxq, struct rte_mbuf **rx_pkts,
        const __m128i zero = _mm_setzero_si128();
        /* mask to shuffle from desc. to mbuf */
        const __m128i shuf_msk = _mm_set_epi8
-                       (0xFF, 0xFF, 0xFF, 0xFF,  /* rss not supported */
+                       (15, 14, 13, 12,  /* octet 12~15, 32 bits rss */
                         11, 10,      /* octet 10~11, 16 bits vlan_macip */
                         5, 4,        /* octet 4~5, 16 bits data_len */
                         0xFF, 0xFF,  /* skip high 16 bits pkt_len, zero out */
@@ -273,7 +273,7 @@ _ice_recv_raw_pkts_vec(struct ice_rx_queue *rxq, struct rte_mbuf **rx_pkts,
        /* Just the act of getting into the function from the application is
         * going to cost about 7 cycles
         */
-       rxdp = (union ice_rx_flex_desc *)rxq->rx_ring + rxq->rx_tail;
+       rxdp = rxq->rx_ring + rxq->rx_tail;
 
        rte_prefetch0(rxdp);