mlx5: fix get_ip_proto()
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 28 Nov 2018 23:04:05 +0000 (15:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Dec 2018 01:19:33 +0000 (17:19 -0800)
commitef6fcd455278c2be3032a346cc66d9dd9866b787
treec8ad49895da3c0fe3f50722c19d760db90661b6f
parenta3d7e01da06013dc580641a1da57c3b482d58157
mlx5: fix get_ip_proto()

IP header is not necessarily located right after struct ethhdr,
there could be multiple 802.1Q headers in between, this is why
we call __vlan_get_protocol().

Fixes: fe1dc069990c ("net/mlx5e: don't set CHECKSUM_COMPLETE on SCTP packets")
Cc: Alaa Hleihel <alaa@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c