]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfp: flower: fix check for unsupported control flags
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Thu, 11 Apr 2024 10:52:55 +0000 (10:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2024 09:33:14 +0000 (10:33 +0100)
commite36245dacd2cca4be716e4096b7dc6df9c8a7a6b
tree5f85a015822b233e12b46db73c60ad5d73a515f9
parentd11e63119432bdb55065d094cb6fd37e9147c70d
nfp: flower: fix check for unsupported control flags

Use flow_rule_is_supp_control_flags()

Check the mask, not the key, for unsupported control flags.

Only compile-tested, no access to HW

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/offload.c