OSDN Git Service

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)
commit23e2c506ad6c588b469e3d06cc20299434440d02
treea88b756a3bd37954c4af8c4dc591f1e3aa1ab720
parent5b1918a54a9180fdb2276dd4a90976e066c410da
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