From: Alvin Zhang Date: Tue, 27 Oct 2020 10:15:07 +0000 (+0800) Subject: net/iavf: fix Rx offload flags in SSE path X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a2bfb911d09506eb8d170b96f30a10dc58ae3687;p=dpdk.git net/iavf: fix Rx offload flags in SSE path 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 Acked-by: Qi Zhang --- diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf/iavf_rxtx_vec_sse.c index 11acaa029e..75c77f9d32 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_sse.c +++ b/drivers/net/iavf/iavf_rxtx_vec_sse.c @@ -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);