]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2bb9236ef77e0ce3d0c08357127d49fd12a0aaf0
tree45b73e9728cda4d9d20acb317598d3e72e7e63b5
parentebca328eb501ca749c49c81da6e7c05f9983ae0d
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