[dpdk-dev] [PATCH v6] net/ice: fix outer checksum on cvl unknown

Ferruh Yigit ferruh.yigit at intel.com
Fri Nov 13 12:51:34 CET 2020


On 11/9/2020 6:06 AM, Murphy Yang wrote:
> Currently, driver does not support parse UDP outer checksum flag of
> tunneled packets.
> 
> When execute 'csum set outer-udp hw 0' and 'csum parse-tunnel on 0'
> commands to enable hardware UDP outer checksum. This patch supports
> parse UDP outer checksum flag of tunneled packets.
> 
> Fixes: dbf3c0e77a22 ("net/ice: handle Rx flex descriptor")
> Fixes: 4ab7dbb0a0f6 ("net/ice: switch to Rx flexible descriptor in AVX path")
> Fixes: ece1f8a8f1c8 ("net/ice: switch to flexible descriptor in SSE path")
> 
> Signed-off-by: Murphy Yang <murphyx.yang at intel.com>

<...>

> @@ -217,10 +253,10 @@ ice_rx_desc_to_olflags_v(struct ice_rx_queue *rxq, __m128i descs[4],
>   	 * appropriate flags means that we have to do a shift and blend for
>   	 * each mbuf before we do the write.
>   	 */
> -	rearm0 = _mm_blend_epi16(mbuf_init, _mm_slli_si128(flags, 8), 0x10);
> -	rearm1 = _mm_blend_epi16(mbuf_init, _mm_slli_si128(flags, 4), 0x10);
> -	rearm2 = _mm_blend_epi16(mbuf_init, flags, 0x10);
> -	rearm3 = _mm_blend_epi16(mbuf_init, _mm_srli_si128(flags, 4), 0x10);
> +	rearm0 = _mm_blend_epi32(mbuf_init, _mm_slli_si128(flags, 8), 0x04);
> +	rearm1 = _mm_blend_epi32(mbuf_init, _mm_slli_si128(flags, 4), 0x04);
> +	rearm2 = _mm_blend_epi32(mbuf_init, flags, 0x04);
> +	rearm3 = _mm_blend_epi32(mbuf_init, _mm_srli_si128(flags, 4), 0x04);


Hi Murphy,

This change is in the 'ice_rxtx_vec_sse.c' file, but is the '_mm_blend_epi32' 
intrinsic, an SSE intrinsic?
Since it is causing a compile error with default target, you can test with 
'./devtools/test-meson-builds.sh' script.


More information about the dev mailing list