]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Refresh offload indication upon group refresh
authorIdo Schimmel <idosch@mellanox.com>
Wed, 2 Aug 2017 07:56:05 +0000 (09:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 00:00:24 +0000 (17:00 -0700)
commit0782c193e72cb7645f7ddf3995d33b388d0ca0d9
treefca97d60cfa49b97ec6a40298a94413032add271
parentc4fdd758f0e9da25d33f9076e5ed57a0db168a75
mlxsw: spectrum_router: Refresh offload indication upon group refresh

Now that we provide offload indication using the nexthop's flags we must
refresh the offload indication whenever the offload state within the
group changes.

This didn't matter until now, as offload indication was provided using
the FIB info flags and multipath routes were marked as offloaded as long
as one of the nexthops was offloaded.

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