[PATCH net-next 0/3] Add hw offload of TC police on MSCC ocelot

Joergen Andreasen
2019-05-02T09:41:07Z

This patch series enables hardware offload of ingress port policing
on the MSCC ocelot board.

Joergen Andreasen (3):
net/sched: act_police: move police parameters into separate header
file
net: mscc: ocelot: Implement port policers via tc command
MIPS: generic: Add police related options to ocelot_defconfig

arch/mips/configs/generic/board-ocelot.config | 7 +
drivers/net/ethernet/mscc/Makefile | 2 +-
drivers/net/ethernet/mscc/ocelot.c | 6 +-
drivers/net/ethernet/mscc/ocelot.h | 3 +
drivers/net/ethernet/mscc/ocelot_police.c | 289 ++++++++++++++++++
drivers/net/ethernet/mscc/ocelot_police.h | 16 +
drivers/net/ethernet/mscc/ocelot_tc.c | 151 +++++++++
drivers/net/ethernet/mscc/ocelot_tc.h | 19 ++
include/net/tc_act/tc_police.h | 41 +++
net/sched/act_police.c | 27 +-
10 files changed, 532 insertions(+), 29 deletions(-)
create mode 100644 drivers/net/ethernet/mscc/ocelot_police.c
create mode 100644 drivers/net/ethernet/mscc/ocelot_police.h
create mode 100644 drivers/net/ethernet/mscc/ocelot_tc.c
create mode 100644 drivers/net/ethernet/mscc/ocelot_tc.h
create mode 100644 include/net/tc_act/tc_police.h

--
2.17.1