diff options
author | Gal Pressman <gal@nvidia.com> | 2024-06-06 23:32:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-06-10 13:18:09 +0100 |
commit | 791b4089e326271424b78f2fae778b20e53d071b (patch) | |
tree | e1b8faa6ea4f1490174a1f4527d07a7e406baf83 /net/unix/af_unix.c | |
parent | c6ae073f5903f6c6439d0ac855836a4da5c0a701 (diff) | |
download | linux-stable-791b4089e326271424b78f2fae778b20e53d071b.tar.gz linux-stable-791b4089e326271424b78f2fae778b20e53d071b.tar.bz2 linux-stable-791b4089e326271424b78f2fae778b20e53d071b.zip |
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions