]> git.baikalelectronics.ru Git - kernel.git/commit
net: prestera: acl: extract matchall logic into a separate file
authorSerhiy Boiko <serhiy.boiko@plvision.eu>
Tue, 23 Aug 2022 11:39:56 +0000 (14:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2022 09:04:54 +0000 (10:04 +0100)
commit152bbf1e84e713062c88b2716f2acb311cec6056
treef9bba82c1af3084a10d8493dc75c67308cf2b731
parent27f8abb700ceab37369e9a23d460292064083d09
net: prestera: acl: extract matchall logic into a separate file

This commit adds more clarity to handling of TC_CLSMATCHALL_REPLACE and
TC_CLSMATCHALL_DESTROY events by calling newly added *_mall_*() handlers
instead of directly calling SPAN API.

This also extracts matchall rules management out of SPAN API since SPAN
is a hardware module which is used to implement 'matchall egress mirred'
action only.

Signed-off-by: Taras Chornyi <tchornyi@marvell.com>
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/Makefile
drivers/net/ethernet/marvell/prestera/prestera_flow.c
drivers/net/ethernet/marvell/prestera/prestera_matchall.c [new file with mode: 0644]
drivers/net/ethernet/marvell/prestera/prestera_matchall.h [new file with mode: 0644]
drivers/net/ethernet/marvell/prestera/prestera_span.c
drivers/net/ethernet/marvell/prestera/prestera_span.h