net/mlx5e: Fix checksum handling for non-stripped vlan packets
authorSaeed Mahameed <saeedm@mellanox.com>
Sun, 24 Apr 2016 19:51:56 +0000 (22:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 19:58:03 +0000 (15:58 -0400)
commit1b223dd391622fde05e03829d813c3c6cc998685
tree627e676d6e4390dc6e1f98f74eb97a2ffd5ff852
parent363501145e3faa650193722fe7047b767ed87172
net/mlx5e: Fix checksum handling for non-stripped vlan packets

Now as rx-vlan offload can be disabled, packets can be received
with vlan tag not stripped, which means is_first_ethertype_ip will
return false, for that we need to check if the hardware reported
csum OK so we will report CHECKSUM_UNNECESSARY for those packets.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
include/linux/mlx5/device.h