aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <[email protected]>2024-04-11 10:52:54 +0000
committerDavid S. Miller <[email protected]>2024-04-15 10:33:14 +0100
commitd11e63119432bdb55065d094cb6fd37e9147c70d (patch)
tree64f30282476a2c1f2edb4e369b417d69cd652b6e /rust/helpers.c
parent3db3b62955cd6d73afde05a17d7e8e106695c3b9 (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 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions