From: Alvin Zhang Date: Fri, 23 Oct 2020 02:13:22 +0000 (+0800) Subject: net/ice: fix Rx offload flags in SSE path X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bdc027118814781740065d962ce3dcb39ecebea0;p=dpdk.git net/ice: fix Rx offload flags in SSE path 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 Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_rxtx_vec_sse.c b/drivers/net/ice/ice_rxtx_vec_sse.c index e950c1b922..626364719b 100644 --- a/drivers/net/ice/ice_rxtx_vec_sse.c +++ b/drivers/net/ice/ice_rxtx_vec_sse.c @@ -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);