]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx4_en: RX csum, remove redundant branches and checks
authorTariq Toukan <tariqt@mellanox.com>
Thu, 28 Dec 2017 14:26:08 +0000 (16:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Dec 2017 17:24:05 +0000 (12:24 -0500)
commit345ef18c24715765baa3e186954c69a43dcd09c9
tree34eb103dc503d4d357be4c00092815da8f1c4d03
parent8ec69574031bb8e0a19cf318c093acc871abd965
net/mlx4_en: RX csum, remove redundant branches and checks

Do not check IPv6 bit in cqe status if CONFIG_IPV6 is not enabled.
Function check_csum() is reached only with IPv4 or IPv6 set (if enabled),
if IPv6 is not set (or is not enabled) it is redundant to test the
IPv4 bit.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c