]> git.baikalelectronics.ru Git - kernel.git/commit
net: prestera: add support for egress traffic mirroring
authorSerhiy Boiko <serhiy.boiko@plvision.eu>
Tue, 23 Aug 2022 11:39:57 +0000 (14:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2022 09:04:54 +0000 (10:04 +0100)
commit529239f5011acb0778ec6e786a272a91dde12b89
tree8ce0d4d6396e961461aea7bd17a1bc7c8ca0081a
parent152bbf1e84e713062c88b2716f2acb311cec6056
net: prestera: add support for egress traffic mirroring

This enables adding matchall rules for egress:

  tc filter add .. egress .. matchall skip_sw \
    action mirred egress mirror dev ..

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Signed-off-by: Maksym Glubokiy <maksym.glubokiy@plvision.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/prestera/prestera_hw.c
drivers/net/ethernet/marvell/prestera/prestera_hw.h
drivers/net/ethernet/marvell/prestera/prestera_matchall.c
drivers/net/ethernet/marvell/prestera/prestera_span.c
drivers/net/ethernet/marvell/prestera/prestera_span.h