]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Do not report activity for multicast routes
authorIdo Schimmel <idosch@nvidia.com>
Wed, 4 May 2022 06:29:07 +0000 (09:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2022 10:21:32 +0000 (11:21 +0100)
commitce32ee2174ba07922e8b67593c8f5b9e4fd2b9f5
treeca6f191106fc9c87c60e48e96c53dc4e2dfa018f
parent8162fda7fc7fb57bce7fdd3f196e86e75406e872
mlxsw: spectrum_acl: Do not report activity for multicast routes

The driver periodically queries the device for activity of ACL rules in
order to report it to tc upon 'FLOW_CLS_STATS'.

In Spectrum-2 and later ASICs, multicast routes are programmed as ACL
rules, but unlike rules installed by tc, their activity is of no
interest.

Avoid unnecessary activity query for such rules by always reporting them
as inactive.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c