]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Add support for route replace
authorIdo Schimmel <idosch@mellanox.com>
Thu, 9 Feb 2017 09:28:44 +0000 (10:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:32:14 +0000 (11:32 -0500)
commit4221e21adafbfcd4749c7cf39eee0a1ec54683a5
tree3ecaed1a3b73f1b8f20dca868b5d3c923c3d2435
parent301f8c045bf286d26ff59d77142dc6919bfa1f4d
mlxsw: spectrum_router: Add support for route replace

Upon the reception of an ENTRY_REPLACE notification, resolve the FIB
node corresponding to the prefix and length and insert the new route
before the first matching entry.

Since the notification also signals the deletion of the replaced route,
delete it from the driver's cache.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c