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)
commitf7df4923fa986247e93ec2cdff5ca168fff14dcf
treed2d146826f43a321b88dc26d76adb728b87dd7cf
parent4f7bfb3982e02aacc5fb6e1a121e5326c1778ac3
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: 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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c