]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: Fix loopback self test when GRO is off
authorInbar Karmy <inbark@mellanox.com>
Thu, 7 Dec 2017 15:26:33 +0000 (17:26 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 20 Feb 2018 20:52:54 +0000 (12:52 -0800)
commitef7a3518f7dd4f4cf5e5b5358c93d1eb78df28fb
tree335acdd94629167d42adb57438906b7852bdf165
parent8babd44d2079079f9d5a4aca7005aed80236efe0
net/mlx5e: Fix loopback self test when GRO is off

When GRO is off, the transport header pointer in sk_buff is
initialized to network's header.

To find the udp header, instead of using udp_hdr() which assumes
skb_network_header was set, manually calculate the udp header offset.

Fixes: 0952da791c97 ("net/mlx5e: Add support for loopback selftest")
Signed-off-by: Inbar Karmy <inbark@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c