]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Add nexthop bucket replacement support
authorIdo Schimmel <idosch@nvidia.com>
Wed, 24 Mar 2021 20:14:18 +0000 (22:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2021 23:34:57 +0000 (16:34 -0700)
commitf0259c021ad45e59b86dbf0060d1044366e14311
treee03252b0827166da22fe6b837433fcec93560a97
parent07589393bf94e1fe0f235734f98b3693ffe03ddb
mlxsw: spectrum_router: Add nexthop bucket replacement support

Replace a single nexthop bucket upon receiving a
'NEXTHOP_EVENT_BUCKET_REPLACE' notification.

When the 'force' parameter is not set, instruct the device to only
overwrite an adjacency entry if its activity is cleared, so as not to
break existing flows using the adjacency entry. The device does not
provide feedback if the replacement was successful in this case, so the
contents of the adjacency entry after the replacement are compared with
the replacement request.

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_router.c