Relax the check in the previous fix to allow packets with security offload flag set.
Fixes: 3c715591ece0 ("net/iavf: fix checksum offloading") Cc: sta...@dpdk.org Cc: david.march...@redhat.com Signed-off-by: Radu Nicolau <radu.nico...@intel.com> --- v2: extend the check for only TX_SEC_OFFLOAD drivers/net/iavf/iavf_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index c6ef6af1d8..99007676a8 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -2664,7 +2664,8 @@ iavf_build_data_desc_cmd_offset_fields(volatile uint64_t *qw1, l2tag1 |= m->vlan_tci; } - if ((m->ol_flags & IAVF_TX_CKSUM_OFFLOAD_MASK) == 0) + if ((m->ol_flags & + (IAVF_TX_CKSUM_OFFLOAD_MASK | RTE_MBUF_F_TX_SEC_OFFLOAD)) == 0) goto skip_cksum; /* Set MACLEN */ -- 2.25.1