]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: IPoIB, handle RX packet correctly
authorErez Shitrit <erezsh@mellanox.com>
Thu, 27 Apr 2017 14:59:00 +0000 (17:59 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 23 May 2017 13:23:31 +0000 (16:23 +0300)
commit7dda9c49c3367e396225ae66ee057d8f5e75ba1c
tree4bc5f424d7d3c86ad35f67ab28b42ba0eacd2dca
parentc6878931d5be9f7f51cdf94702e167079b09cd88
net/mlx5e: IPoIB, handle RX packet correctly

IPoIB packet contains the pseudo header area, we need to pull it prior
to reset_mac_header in order to let the GRO work well.

In more details:
GRO checks the mac address of the new coming packet, it does that by
comparing the hard_header_len size of the current packet to the previous
one in that session, the comparison is over hard_header_len size.
Now, the driver prepares that area in the skb by allocating area from the
reserved part and resetting the correct mac header to it.

Fixes: 26fb0a9b4891 ("net/mlx5e: IPoIB, RX handler")
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c