OpenCloudOS-Kernel/drivers/net/ethernet/mellanox
Edward Cree 060b6381ef net: flow_offload: simplify hw stats check handling
Make FLOW_ACTION_HW_STATS_DONT_CARE be all bits, rather than none, so that
 drivers and __flow_action_hw_stats_check can use simple bitwise checks.

Pre-fill all actions with DONT_CARE in flow_rule_alloc(), rather than
 relying on implicit semantics of zero from kzalloc, so that callers which
 don't configure action stats themselves (i.e. netfilter) get the correct
 behaviour by default.

Only the kernel's internal API semantics change; the TC uAPI is unaffected.

v4: move DONT_CARE setting to flow_rule_alloc() for robustness and simplicity.

v3: set DONT_CARE in nft and ct offload.

v2: rebased on net-next, removed RFC tags.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-22 15:52:08 -07:00
..
mlx4 mlx4: Add XDP frame size and adjust max XDP MTU 2020-05-14 21:21:55 -07:00
mlx5/core net/mlx5e: Take DCBNL-related definitions into dedicated files 2020-05-15 15:44:36 -07:00
mlxfw net/mlxfw: Remove unneeded semicolon 2020-04-24 16:56:22 -07:00
mlxsw net: flow_offload: simplify hw stats check handling 2020-05-22 15:52:08 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00