diff options
| author | Asbjørn Sloth Tønnesen <[email protected]> | 2024-04-11 10:52:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-04-15 10:33:14 +0100 |
| commit | d11e63119432bdb55065d094cb6fd37e9147c70d (patch) | |
| tree | 64f30282476a2c1f2edb4e369b417d69cd652b6e /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 3db3b62955cd6d73afde05a17d7e8e106695c3b9 (diff) | |
flow_offload: add control flag checking helpers
These helpers aim to help drivers, with checking
for the presence of unsupported control flags.
For drivers supporting at least one control flag:
flow_rule_is_supp_control_flags()
For drivers using flow_rule_match_control(), but not using flags:
flow_rule_has_control_flags()
For drivers not using flow_rule_match_control():
flow_rule_match_has_control_flags()
While primarily aimed at FLOW_DISSECTOR_KEY_CONTROL
and flow_rule_match_control(), then the first two
can also be used with FLOW_DISSECTOR_KEY_ENC_CONTROL
and flow_rule_match_enc_control().
These helpers mirrors the existing check done in sfc:
drivers/net/ethernet/sfc/tc.c +276
Only compile-tested.
Signed-off-by: Asbjørn Sloth Tønnesen <[email protected]>
Reviewed-by: Louis Peens <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions