Skip to content

Commit

Permalink
net/iavf: fix Tx offload flags check
Browse files Browse the repository at this point in the history
[ upstream commit 55f6cfe9ba8cebddd786f0f6bf5b9baad97fdfad ]

Relax the check in the previous fix to allow packets
with security offload flag set.

Fixes: 3c715591ece0 ("net/iavf: fix checksum offloading")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
rnicolau authored and kevintraynor committed Nov 16, 2023
1 parent 9e228c5 commit 7fd1331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/iavf/iavf_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,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 */
Expand Down

0 comments on commit 7fd1331

Please sign in to comment.