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)
commita970d8dba5dab199218d13080dcad4e22cbaf8b5
tree6f9011a103a1f1103eb8d0d914da095384f411fa
parent1cb8b1216c427ddbec51b8c3e77459dd44f85bcc
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