net: dsa: add port policers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 29 Mar 2020 11:51:59 +0000 (14:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:44:00 +0000 (11:44 -0700)
commit342971766c177ee5ad42dadd9809d581c5a65a67
tree45b73e9728cda4d9d20acb317598d3e72e7e63b5
parente13c2075280e5b25118d3330752b47f919d6545e
net: dsa: add port policers

The approach taken to pass the port policer methods on to drivers is
pragmatic. It is similar to the port mirroring implementation (in that
the DSA core does all of the filter block interaction and only passes
simple operations for the driver to implement) and dissimilar to how
flow-based policers are going to be implemented (where the driver has
full control over the flow_cls_offload data structure).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/slave.c