]> 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)
commit7d3a1f4fd2b2bd89351a6d1e805ac4a7fef29b64
tree6f9011a103a1f1103eb8d0d914da095384f411fa
parent6fed0288ab3407c40be7d81a62523392482c2f3e
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