]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: sparx5: add support for tc flower mirred action.
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 5 Apr 2024 07:44:49 +0000 (09:44 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Apr 2024 08:45:10 +0000 (10:45 +0200)
commit48ba00da2eb4b54a7e6ed2ca3a9f2e575dff48c9
tree3058cd3a6d7e0942aaa324f13c161f2983bc04a3
parent74bd5dbe1b9197b217bb44e4ae5f745307b566ee
net: sparx5: add support for tc flower mirred action.

Add support for tc flower mirred action. Two VCAP actions are encoded in
the rule - one for the port mask, and one for the port mask mode. When
the rule is hit, the destination mask is OR'ed with the port mask.

Also add new VCAP function for supporting 72-bit wide actions, and a tc
helper for setting the port forwarding mask.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
drivers/net/ethernet/microchip/vcap/vcap_api.c
drivers/net/ethernet/microchip/vcap/vcap_api_client.h