]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: Trust kernel regarding transport offset
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Thu, 21 Feb 2019 12:40:05 +0000 (12:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 20:55:32 +0000 (12:55 -0800)
commit41f5f63cd17530d9eddaf99a71f5d069afd787d8
treeb41c5aa5786c702502de08f1560751c51170156e
parent3517dfe6f23608951044cbfc833fa108603441fa
net/mlx5e: Trust kernel regarding transport offset

After AF_PACKET is fixed to calculate the transport header offset
correctly, trust the value set by the kernel. If the offset wasn't set,
it means there is no transport header in the packet.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c