mirror_ubuntu-kernels/drivers/net/ethernet/marvell
Ido Schimmel f4356947f0 flow_offload: Reject matching on layer 2 miss
Adjust drivers that support the 'FLOW_DISSECTOR_KEY_META' key to reject
filters that try to match on the newly added layer 2 miss field. Add an
extack message to clearly communicate the failure reason to user space.

The following users were not patched:

1. mtk_flow_offload_replace(): Only checks that the key is present, but
   does not do anything with it.
2. mlx5_tc_ct_set_tuple_match(): Used as part of netfilter offload,
   which does not make use of the new field, unlike tc.
3. get_netdev_from_rule() in nfp: Likewise.

Example:

 # tc filter add dev swp1 egress pref 1 proto all flower skip_sw l2_miss true action drop
 Error: mlxsw_spectrum: Can't match on "l2_miss".
 We have an error talking to the kernel

Acked-by: Elad Nachman <enachman@marvell.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-05-30 23:37:00 -07:00
..
mvpp2 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-30 14:43:03 -07:00
octeon_ep octeon_ep: unlock the correct lock on error path 2023-03-29 21:39:35 -07:00
octeontx2 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-05-25 19:57:39 -07:00
prestera flow_offload: Reject matching on layer 2 miss 2023-05-30 23:37:00 -07:00
Kconfig net: ethernet: Add missing depends on MDIO_DEVRES 2023-04-12 20:38:48 -07:00
Makefile octeon_ep: Add driver framework and device initialization 2022-04-13 12:56:32 +01:00
mv643xx_eth.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
mvmdio.c net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
mvneta_bm.c
mvneta_bm.h
mvneta.c net: introduce and use skb_frag_fill_page_desc() 2023-05-13 19:47:56 +01:00
pxa168_eth.c net: marvell: pxa168_eth: drop of_match_ptr for ID table 2023-03-15 08:02:45 +00:00
skge.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
skge.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
sky2.c treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
sky2.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00