mirror_ubuntu-kernels/drivers/net/ethernet
Steen Hegelund c9da1ac1c2 net: microchip: sparx5: Adding initial tc flower support for VCAP API
This adds initial TC flower filter support to Sparx5 for the IS2 VCAP.

The support consists of the source and destination MAC addresses,
and the trap and pass actions.

This is how you can create a rule that test the functionality:

tc qdisc add dev eth0 clsact
tc filter add dev eth0 ingress chain 8000000 prio 10 handle 10 \
      protocol all flower skip_sw \
      dst_mac 0a:0b:0c:0d:0e:0f \
      src_mac 2:0:0:0:0:1 \
      action trap

The IS2 chains in Sparx5 are assigned like this:

- chain 8000000: IS2 Lookup 0
- chain 8100000: IS2 Lookup 1
- chain 8200000: IS2 Lookup 2
- chain 8300000: IS2 Lookup 3

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Tested-by: Casper Andersson <casper.casan@gmail.com>
Reviewed-by: Casper Andersson <casper.casan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-10-24 10:37:43 +01:00
..
3com net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
8390 ethernet: 8390: remove unnecessary check of mem 2022-09-29 11:05:23 +02:00
actions net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
adaptec net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
adi net: ethernet: adi: adin1110: add reset GPIO 2022-10-21 13:11:33 +01:00
aeroflex net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
agere net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
alacritech net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
allwinner net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
alteon net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
altera net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
amazon net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
amd net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
apm net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
apple net: ethernet: Prepare cleanup of powerpc's asm/prom.h 2022-05-05 15:53:02 -07:00
aquantia net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
arc net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
asix net: ax88796c: Use skb_put_data() instead of skb_put/memcpy pair 2022-09-29 09:37:29 +02:00
atheros Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-10-03 17:44:18 -07:00
broadcom net: bcmgenet: add RX_CLS_LOC_ANY support 2022-10-20 21:43:57 -07:00
brocade net: bna: Fix spelling mistake "muliple" -> "multiple" 2022-09-30 13:01:16 +01:00
cadence Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-29 14:30:51 -07:00
calxeda net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
cavium eth: octeon: fix build after netif_napi_add() changes 2022-10-03 17:03:25 -07:00
chelsio treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
cirrus net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
cisco enic: define constants for legacy interrupts offset 2022-10-18 19:34:28 -07:00
cortina net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
davicom net: davicom: Fix return type of dm9000_start_xmit 2022-09-19 18:23:14 -07:00
dec net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
dlink net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
emulex net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
engleder tsnep: Use page pool for RX 2022-09-30 11:32:27 +01:00
ezchip eth: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
faraday net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
freescale net: dpaa2-eth: add trace points on XSK events 2022-10-24 09:22:11 +01:00
fujitsu net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
fungible net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
google net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
hisilicon net: hns: fix possible memory leak in hnae_ae_register() 2022-10-19 17:28:52 -07:00
huawei net: hinic: remove the unused input parameter prod_idx in sq_prepare_ctrl() 2022-09-22 17:41:28 -07:00
i825xx Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
ibm ibmveth: Ethtool set queue support 2022-09-30 12:40:22 +01:00
intel i40e: Fix DMA mappings leak 2022-10-14 08:24:31 +01:00
litex net: ethernet: litex: Fix return type of liteeth_start_xmit 2022-09-19 18:23:39 -07:00
marvell ethernet: marvell: octeontx2 Fix resource not freed after malloc 2022-10-19 13:43:41 +01:00
mediatek net: ethernet: mediatek: ppe: Remove the unused function mtk_foe_entry_usable() 2022-10-17 09:36:39 +01:00
mellanox Including fixes from netfilter, and wifi. 2022-10-13 10:51:01 -07:00
micrel net: ks8851: switch to using gpiod API 2022-09-15 11:43:51 +02:00
microchip net: microchip: sparx5: Adding initial tc flower support for VCAP API 2022-10-24 10:37:43 +01:00
microsoft Including fixes from wifi, netfilter and can. 2022-09-22 10:58:13 -07:00
moxa net: moxa: fix endianness-related issues from 'sparse' 2022-09-06 10:24:42 +02:00
mscc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-29 14:30:51 -07:00
myricom net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
natsemi net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
neterion ethernet: s2io: Use skb_put_data() instead of skb_put/memcpy pair 2022-09-29 09:19:09 +02:00
netronome nfp: flower: tunnel neigh support bond offload 2022-10-24 10:32:45 +01:00
ni net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
nvidia net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
nxp net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
oki-semi net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
packetengines net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
pasemi net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
pensando ionic: catch NULL pointer issue on reconfig 2022-10-18 19:19:31 -07:00
qlogic net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
qualcomm net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
rdc net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
realtek r8169: add rtl_disable_rxdvgate() 2022-09-30 18:17:06 -07:00
renesas net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
rocker treewide: use get_random_bytes() when possible 2022-10-11 17:42:58 -06:00
samsung net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
seeq
sfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-10-20 17:49:10 -07:00
sgi net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
silan
sis net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
smsc net: remove smc911x driver 2022-10-18 19:33:51 -07:00
socionext net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
stmicro net: stmmac: Enable mac_managed_pm phylink config 2022-10-15 11:51:52 +01:00
sun sunhme: Uninitialized variable in happy_meal_init() 2022-10-15 11:14:24 +01:00
sunplus Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-10-03 17:44:18 -07:00
synopsys net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
tehuti net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ti net: ethernet: ti: am65-cpsw: set correct devlink flavour for unused ports 2022-10-12 09:05:04 +01:00
toshiba net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
tundra net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
vertexcom net: vertexcom: mse102x: Silence no spi_device_id warnings 2022-09-26 12:46:16 -07:00
via net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
wangxun net: ngbe: Add build support for ngbe 2022-08-30 12:32:51 +02:00
wiznet net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xilinx net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
xircom net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xscale net: xscale: Fix return type for implementation of ndo_start_xmit 2022-09-02 21:18:56 -07:00
dnet.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
dnet.h
ec_bhf.c
ethoc.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
fealnx.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
jme.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
jme.h jme: remove an unnecessary indirection 2022-05-05 15:53:28 -07:00
Kconfig net: ethernet: adi: Add ADIN1110 support 2022-09-20 15:00:30 +02:00
korina.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
lantiq_etop.c net: lantiq_etop: Fix return type for implementation of ndo_start_xmit 2022-09-02 21:19:35 -07:00
lantiq_xrx200.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
Makefile net: ethernet: adi: Add ADIN1110 support 2022-09-20 15:00:30 +02:00