OSDN Git Service

ocelot_ace: fix action of trap
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 21 Aug 2019 01:59:12 +0000 (09:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2019 22:44:24 +0000 (15:44 -0700)
commita71d9eff9394d24f05cbe115309152fb4543cd6c
tree18ded3f3dca27986833d708b087d2c73dd868e23
parentcc07db5a5b100bc8eaab5097a23d72f858979750
ocelot_ace: fix action of trap

The trap action should be copying the frame to CPU and
dropping it for forwarding, but current setting was just
copying frame to CPU.

Fixes: b596229448dd ("net: mscc: ocelot: Add support for tcam")
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Allan W. Nielsen <allan.nielsen@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_ace.c