]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix wrong csum complete report when rxvlan offload is disabled
authorIdo Shamay <idos@mellanox.com>
Thu, 25 Jun 2015 08:29:43 +0000 (11:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2015 09:06:28 +0000 (02:06 -0700)
commit5f82a8db7745076e69550966f9f0caa49a31d3d2
tree24da35d42206801da18d45698ff4b65091f69cc8
parent141186f280035c8879586acab86075286d147169
net/mlx4_en: Fix wrong csum complete report when rxvlan offload is disabled

The check_csum() function relied on hwtstamp_rx_filter to know if rxvlan
offload is disabled. This is wrong since rxvlan offload can be switched
on/off regardless of hwtstamp_rx_filter.

Also moved check_csum to query CQE information to identify VLAN packets
and removed the check of IP packets, since it has been validated before.

Fixes: 659509af05cf ('net/mlx4_en: Extend checksum offloading by CHECKSUM COMPLETE')
Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c