The SCTP tunnel packets cannot be forwarded in AVX2 mode. As 2 features are developed in parallel, 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") doesn't consider the impact of 4f8259df563a ("net/iavf: enable Tx outer checksum offload on AVX512"). So, the wrong TX path is selected.
Fixes: 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") Signed-off-by: Wenzhuo Lu <wenzhuo...@intel.com> --- drivers/net/iavf/iavf_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 4c59c1a..a22abb1 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -3919,7 +3919,7 @@ struct iavf_tx_context_desc_qws { check_ret = iavf_tx_vec_dev_check(dev); - if (check_ret >= 0 && + if ((check_ret == IAVF_VECTOR_PATH || check_ret == IAVF_VECTOR_OFFLOAD_PATH) && rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128) { /* SSE not support offload path yet. */ if (check_ret == IAVF_VECTOR_PATH) { -- 1.8.3.1