path: root/drivers/net/mlx5/mlx5_rxtx.c
diff options
authorYongseok Koh <>2018-05-22 01:59:42 -0700
committerFerruh Yigit <>2018-05-23 00:35:01 +0200
commit8589e944d0751bc5959d3c53c2ffcfd0d10cca0c (patch)
treeb6ca0e4ee0d783848d0bb61c19b2835c214b3890 /drivers/net/mlx5/mlx5_rxtx.c
parente435197a5fc28e725c71c12893b64626c8d32c09 (diff)
net/mlx5: fix setting offsets for SW parser
Since ConnectX-5, SW parser just complements HW parser. SW parser starts to engage only if HW parser can't reach a header. For the older devices, HW parser will not kick in if any of SWP offsets is set. Therefore, all of the L3 offsets should be set regardless of HW offload. As IPv6 doesn't have header checksum, the mbuf can't have PKT_TX_[OUTER_]IP_CKSUM if outer or inner L3 is IPv6. And if inner packet isn't IP, the inner offsets shouldn't be set. Fixes: 5f8ba81c4228 ("net/mlx5: support generic tunnel offloading") Signed-off-by: Yongseok Koh <> Acked-by: Xueming Li <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.c')
0 files changed, 0 insertions, 0 deletions