]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Separate nexthop offload indication from route
authorIdo Schimmel <idosch@mellanox.com>
Tue, 14 Jan 2020 11:23:13 +0000 (13:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 02:53:35 +0000 (18:53 -0800)
commit4c73da37132de85bef8e9a705d8309b665293594
treed635c9a0c70e00f4a473d2c478dcd30f2a493cf8
parent4fb4b908ee5046e168a23bfbd67955bb5033e971
mlxsw: spectrum_router: Separate nexthop offload indication from route

The driver currently uses the 'RTNH_F_OFFLOAD' flag for both routes and
nexthops, which is cumbersome and unnecessary now that we have separate
flag for the route itself.

Separate the offload indication for nexthops from routes and call it
whenever the offload state within the nexthop group changes.

Note that IPv6 (unlike IPv4) does not share the same nexthop group
between different routes, whereas mlxsw does. Therefore, whenever the
offload indication within an IPv6 nexthop group changes, all the linked
routes need to be updated.

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