]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: RX csum, pre-define enabled protocols for IP status masking
authorTariq Toukan <tariqt@mellanox.com>
Tue, 27 Feb 2018 14:17:22 +0000 (16:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:53:26 +0000 (14:53 -0500)
commit52efcb30052028c4fea43d8366227bc0a85f2967
tree6f9011a103a1f1103eb8d0d914da095384f411fa
parentc798fb47d876805306b17149dac6e03b3c36b117
net/mlx4_en: RX csum, pre-define enabled protocols for IP status masking

Pre-define a mask for IP status of a completion, that tests the
MLX4_CQE_STATUS_IPV6 only in case CONFIG_IPV6 is enabled.
Use it for IP status testing upon completion, instead of separating
the datapath into two flows.
This takes common code structures (such as closing parenthesis)
back to their original place, and makes code more readable.

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