]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:57 +0000 (12:56 +0100)
commit8f05976cbfba6bc953af07e68eb2174d4e5bdf6c
treeb6b6f15fe3b4a5f9229396d6b961d4c1cf6a34bb
parent40f9f783920f936ef99336d8310ab7e95db28db5
mlxsw: spectrum_router: Avoid potential packets loss

[ Upstream commit f7df4923fa986247e93ec2cdff5ca168fff14dcf ]

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: 6b75c4807db3 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c