Re: [PATCH v4 net-next] net: flow_offload: simplify hw stats check handling

2020-05-22 Thread David Miller
From: Edward Cree Date: Wed, 20 May 2020 19:18:10 +0100 > 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

[PATCH v4 net-next] net: flow_offload: simplify hw stats check handling

2020-05-20 Thread Edward Cree
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'