Pablo Neira Ayuso 16f8036086 net: flow_offload: skip hw stats check for FLOW_ACTION_HW_STATS_DONT_CARE
This patch adds FLOW_ACTION_HW_STATS_DONT_CARE which tells the driver
that the frontend does not need counters, this hw stats type request
never fails. The FLOW_ACTION_HW_STATS_DISABLED type explicitly requests
the driver to disable the stats, however, if the driver cannot disable
counters, it bails out.

TCA_ACT_HW_STATS_* maintains the 1:1 mapping with FLOW_ACTION_HW_STATS_*
except by disabled which is mapped to FLOW_ACTION_HW_STATS_DISABLED
(this is 0 in tc). Add tc_act_hw_stats() to perform the mapping between
TCA_ACT_HW_STATS_* and FLOW_ACTION_HW_STATS_*.

Fixes: 319a1d19471e ("flow_offload: check for basic action hw stats type")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-06 20:13:10 -07:00
..
2019-01-23 11:18:00 -08:00
2020-02-24 13:31:42 -08:00
2020-04-14 12:40:02 +02:00
2020-03-30 11:44:00 -07:00
2020-03-23 21:57:44 -07:00
2019-12-09 09:59:07 +01:00
2019-10-23 20:13:22 -07:00
2019-12-09 10:36:44 -08:00
2020-03-29 22:30:57 -07:00
2018-09-13 09:04:58 -07:00
2019-12-09 10:36:44 -08:00
2016-07-08 12:20:57 +02:00
2017-11-08 16:12:33 +09:00
2020-03-04 13:25:55 -08:00
2018-05-16 07:23:35 +02:00
2020-03-23 21:57:44 -07:00
2020-03-29 22:30:57 -07:00
2019-04-22 21:47:25 -07:00
2019-10-05 16:29:00 -07:00
2020-04-18 15:47:28 -07:00
2020-03-09 22:34:58 +01:00
2019-12-09 10:28:43 -08:00
2019-06-19 11:23:13 -04:00
2019-12-09 09:59:07 +01:00