]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5e: Fix features validation check for tunneled UDP (non-VXLAN) packets
authorGal Pressman <gal@nvidia.com>
Thu, 6 Jun 2024 20:32:49 +0000 (23:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2024 12:18:09 +0000 (13:18 +0100)
commit791b4089e326271424b78f2fae778b20e53d071b
treee1b8faa6ea4f1490174a1f4527d07a7e406baf83
parentc6ae073f5903f6c6439d0ac855836a4da5c0a701
net/mlx5e: Fix features validation check for tunneled UDP (non-VXLAN) packets

Move the vxlan_features_check() call to after we verified the packet is
a tunneled VXLAN packet.

Without this, tunneled UDP non-VXLAN packets (for ex. GENENVE) might
wrongly not get offloaded.
In some cases, it worked by chance as GENEVE header is the same size as
VXLAN, but it is obviously incorrect.

Fixes: e3cfc7e6b7bd ("net/mlx5e: TX, Add geneve tunnel stateless offload support")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c