> -----Original Message----- > From: Zhichao Zeng <zhichaox.z...@intel.com> > Sent: Tuesday, September 20, 2022 4:37 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Yang, Qiming <qiming.y...@intel.com>; Zhou, YidingX > <yidingx.z...@intel.com>; Zeng, ZhichaoX <zhichaox.z...@intel.com>; Wu, > Jingjing <jingjing...@intel.com>; Xing, Beilei <beilei.x...@intel.com>; > Richardson, Bruce <bruce.richard...@intel.com>; Konstantin Ananyev > <konstantin.v.anan...@yandex.ru>; Zhang, Qi Z <qi.z.zh...@intel.com>; > Rong, Leyi <leyi.r...@intel.com>; Lu, Wenzhuo <wenzhuo...@intel.com> > Subject: [PATCH] net/iavf: fix outer checksum flags > > When receiving tunneled packets, the testpmd output log shows 'ol_flags' > value always as 'RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN', but > expected value should be 'RX_OUTER_L4_CKSUM_GOOD' or > 'RX_OUTER_L4_CKSUM_BAD'. > > Adding 'RX_OUTER_L4_CKSUM_GOOD' and 'RX_OUTER_L4_CKSUM_BAD' to > 'flags' for normal path, 'l3_l4_flags_shuf' for AVX2 and AVX512 vector path > and 'cksum_flags' for SSE vector path to ensure that the 'ol_flags' > can match correct flags. > > Fixes: b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in normal > path") > Fixes: 1162f5a0ef31 ("net/iavf: support flexible Rx descriptor in SSE path") > Fixes: 5b6e8859081d ("net/iavf: support flexible Rx descriptor in AVX path") > Fixes: 9c9aa0040344 ("net/iavf: add offload path for Rx AVX512 flex > descriptor") > Cc: sta...@dpdk.org > > Signed-off-by: Zhichao Zeng <zhichaox.z...@intel.com>
Tested and passed. Tested-by: Ke Xu <ke1...@intel.com> > --- > drivers/net/iavf/iavf_rxtx.c | 9 +- > drivers/net/iavf/iavf_rxtx_vec_avx2.c | 118 +++++++++++++++------ > drivers/net/iavf/iavf_rxtx_vec_avx512.c | 133 ++++++++++++++++++------ > drivers/net/iavf/iavf_rxtx_vec_sse.c | 77 ++++++++++---- > 4 files changed, 252 insertions(+), 85 deletions(-) >