octeontx2-pf: flower: check for unsupported control flags
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Mon, 22 Apr 2024 15:27:34 +0000 (15:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Apr 2024 03:01:44 +0000 (20:01 -0700)
commit3c3adb22510cf1c9bb4c43e3f74650a8ff2d85d7
treeacc7ef6db5d5d8bceb3ea34997dfef9c5db73b33
parente199a5b29f199b1fb790d09f1cc12d5bc564fe37
octeontx2-pf: flower: check for unsupported control flags

Use flow_rule_is_supp_control_flags() to reject filters with
unsupported control flags.

In case any unsupported control flags are masked,
flow_rule_is_supp_control_flags() sets a NL extended
error message, and we return -EOPNOTSUPP.

Remove FLOW_DIS_FIRST_FRAG specific error message,
and treat it as any other unsupported control flag.

Only compile-tested.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Sunil Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20240422152735.175693-1-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c