]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Avoid potential packets loss
authorIdo Schimmel <idosch@mellanox.com>
Tue, 28 Feb 2017 07:55:40 +0000 (08:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Mar 2017 17:50:58 +0000 (09:50 -0800)
commitad81e7dc5bd3d2fd91ad88cdc7aeb7e3b47d509d
treed2d146826f43a321b88dc26d76adb728b87dd7cf
parent28bc29c51b8c62a6080d25565613992fd734a3d7
mlxsw: spectrum_router: Avoid potential packets loss

When the structure of the LPM tree changes (f.e., due to the addition of
a new prefix), we unbind the old tree and then bind the new one. This
may result in temporary packet loss.

Instead, overwrite the old binding with the new one.

Fixes: b8eb85b5872c ("mlxsw: spectrum_router: Add virtual router management")
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