net/ice: fix Rx offload flags in SSE path
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 23 Oct 2020 02:13:22 +0000 (10:13 +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: ece1f8a8f1c8 ("net/ice: switch to flexible 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/ice/ice_rxtx_vec_sse.c

index e950c1b..6263647 100644 (file)
@@ -159,7 +159,7 @@ ice_rx_desc_to_olflags_v(struct ice_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);