]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Sep 2016 23:15:29 +0000 (16:15 -0700)
commitcd17d230dd060a12f7451c0caeedb3fd5158eaf9
tree78a463ca47e06f2b59dad504f05904f1ee0e5f85
parent4e39883d9c7426f8246ef86a32dc6a6f06f5aace
net/mlx5e: Fix parsing of vlan packets when updating lro header

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>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c