]> git.droids-corp.org - dpdk.git/commit
net/cnxk: fix roundup size with transport mode
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Sun, 8 May 2022 07:48:25 +0000 (13:18 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 10 May 2022 14:27:02 +0000 (16:27 +0200)
commit2e668c547f7777af8f3a744da79b3246fd72eb9c
treefeccfef81695fcc470927066b1f89737480b5bc6
parent1e1bfd078e581c155cd5a2b5c9191d87714dfc93
net/cnxk: fix roundup size with transport mode

For transport mode, roundup needs to be based on L4 data
and shouldn't include L3 length.

By including L3 length, rlen that is calculated and put in
send hdr would cross the final length of the packet in some
scenarios where padding is necessary.

Also when outer and inner checksum offload flags are enabled,
get the l2_len and l3_len from il3ptr and il4ptr.

Fixes: 55bfac717c72 ("net/cnxk: support Tx security offload on cn10k")
Cc: stable@dpdk.org
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/cnxk/cn10k_tx.h