diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-05-06 21:34:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-07 06:13:10 +0300 |
commit | 16f8036086a929694c3c62f577bb5925fe4fd607 (patch) | |
tree | 23ecfc61c1efb40e0f8fb93993cd3e1a6d870b19 /Documentation | |
parent | b0956956bbd7b8c93112269a1e9c8309b0ceb0e7 (diff) | |
download | linux-16f8036086a929694c3c62f577bb5925fe4fd607.tar.xz |
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions