]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: add gate and police action offload to PSFP
authorXiaoliang Yang <xiaoliang.yang_1@nxp.com>
Thu, 18 Nov 2021 10:11:59 +0000 (18:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 12:07:23 +0000 (12:07 +0000)
commit5d68435bfd12e313e0ec5af60011fb88a93eefd5
treea88b756a3bd37954c4af8c4dc591f1e3aa1ab720
parent4c2a635b60da0143ee6c4bf8a7affffa3903267b
net: mscc: ocelot: add gate and police action offload to PSFP

PSFP support gate and police action. This patch add the gate and police
action to flower parse action, check chain ID to determine which block
to offload. Adding psfp callback functions to add, delete and update gate
and police in PSFP table if hardware supports it.

Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_flower.c
include/soc/mscc/ocelot.h
include/soc/mscc/ocelot_vcap.h