net/iavf: fix Rx offload flags in SSE path
authorAlvin Zhang <alvinx.zhang@intel.com>
Tue, 27 Oct 2020 10:15:07 +0000 (18:15 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:02 +0000 (23:35 +0100)
Update reading offload flags of last two of four packets.

Fixes: 1162f5a0ef31 ("net/iavf: support flexible Rx descriptor in SSE path")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_rxtx_vec_sse.c

index 11acaa0..75c77f9 100644 (file)
@@ -267,7 +267,7 @@ flex_desc_to_olflags_v(struct iavf_rx_queue *rxq, __m128i descs[4],
        flags = _mm_unpackhi_epi32(descs[0], descs[1]);
        tmp_desc = _mm_unpackhi_epi32(descs[2], descs[3]);
        tmp_desc = _mm_unpacklo_epi64(flags, tmp_desc);
-       tmp_desc = _mm_and_si128(flags, desc_mask);
+       tmp_desc = _mm_and_si128(tmp_desc, desc_mask);
 
        /* checksum flags */
        tmp_desc = _mm_srli_epi32(tmp_desc, 4);