]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sfc: handle enc keys in efx_tc_flower_parse_match()
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 27 Mar 2023 10:36:05 +0000 (11:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2023 08:06:08 +0000 (09:06 +0100)
commitb7f5e17b3bb96165979f55f2821190a77f984d0e
tree75ae471f180c6ffaa72ca5c8e64a89fef320582d
parentb9d5c9b7d8a47ca4af5e32f576265c388a467af5
sfc: handle enc keys in efx_tc_flower_parse_match()

Translate the fields from flow dissector into struct efx_tc_match.
In efx_tc_flower_replace(), reject filters that match on them, because
 only 'foreign' filters (i.e. those for which the ingress dev is not
 the sfc netdev or any of its representors, e.g. a tunnel netdev) can
 use them.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/tc.c