Hi Horatiu, On Fri, 31 May 2019 at 10:18, Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx> wrote: > > Add ACL support using the TCAM. Using ACL it is possible to create rules > in hardware to filter/redirect frames. > > Signed-off-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx> > --- > arch/mips/boot/dts/mscc/ocelot.dtsi | 5 +- > drivers/net/ethernet/mscc/Makefile | 2 +- > drivers/net/ethernet/mscc/ocelot.c | 13 + > drivers/net/ethernet/mscc/ocelot.h | 8 + > drivers/net/ethernet/mscc/ocelot_ace.c | 777 +++++++++++++++++++++++++++++++ > drivers/net/ethernet/mscc/ocelot_ace.h | 227 +++++++++ > drivers/net/ethernet/mscc/ocelot_board.c | 1 + > drivers/net/ethernet/mscc/ocelot_regs.c | 11 + > drivers/net/ethernet/mscc/ocelot_s2.h | 64 +++ > drivers/net/ethernet/mscc/ocelot_vcap.h | 403 ++++++++++++++++ > 10 files changed, 1508 insertions(+), 3 deletions(-) > create mode 100644 drivers/net/ethernet/mscc/ocelot_ace.c > create mode 100644 drivers/net/ethernet/mscc/ocelot_ace.h > create mode 100644 drivers/net/ethernet/mscc/ocelot_s2.h > create mode 100644 drivers/net/ethernet/mscc/ocelot_vcap.h > I was testing this functionality and it looks like the MAC_ETYPE keys (src_mac, dst_mac) only match non-IP frames. Example, this rule doesn't drop ping traffic: tc qdisc add dev swp0 clsact tc filter add dev swp0 ingress flower skip_sw dst_mac 96:e1:ef:64:1b:44 action drop Would it be possible to do anything about that? Thanks, -Vladimir