diff options
author | 2024-04-17 13:51:20 +0000 | |
---|---|---|
committer | 2024-04-18 17:02:37 -0700 | |
commit | 4713744d9f6ee1f6dc5ac6f58c30f1b9f21067f8 (patch) | |
tree | 869cfab4ec23efa2add83697ce76a27ded915c8c /net/ipv6/sysctl_net_ipv6.c | |
parent | selftests: net: set the exit code correctly in Python tests (diff) | |
download | wireguard-linux-4713744d9f6ee1f6dc5ac6f58c30f1b9f21067f8.tar.xz wireguard-linux-4713744d9f6ee1f6dc5ac6f58c30f1b9f21067f8.zip |
mlxsw: spectrum_flower: validate control flags
This driver currently doesn't support any control flags.
Use flow_rule_has_control_flags() to check for control flags,
such as can be set through `tc flower ... ip_flags frag`.
In case any control flags are masked, flow_rule_has_control_flags()
sets a NL extended error message, and we return -EOPNOTSUPP.
Only compile-tested.
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/20240417135131.99921-1-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/sysctl_net_ipv6.c')
0 files changed, 0 insertions, 0 deletions