]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Fix parsing of vlan packets when updating lro header
authorGal Pressman <galp@mellanox.com>
Wed, 7 Sep 2016 16:08:01 +0000 (19:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:09:26 +0000 (10:09 +0200)
commit28186a5c98d1a173596c1ec94a95d25215428496
treef71159cf4337cb6f4d430d0057e8afa6303cf2c6
parent9f637323161e0e561c8f216eac0db2c17221f511
net/mlx5e: Fix parsing of vlan packets when updating lro header

[ Upstream commit cd17d230dd060a12f7451c0caeedb3fd5158eaf9 ]

Currently vlan tagged packets were not parsed correctly
and assumed to be regular IPv4/IPv6 packets.
We should check for 802.1Q/802.1ad tags and update the lro header
accordingly.
This fixes the use case where LRO is on and rxvlan is off
(vlan stripping is off).

Fixes: e586b3b0baee ('net/mlx5: Ethernet Datapath files')
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c