]> 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)
commit4308f22d134318c6e6acc9c78b936f3efd2c201f
treed635c9a0c70e00f4a473d2c478dcd30f2a493cf8
parenta963702ad6ad928b9f2118adb85e4d15e2a24e63
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