Commit 5d1f0f09 authored by David Ahern's avatar David Ahern Committed by Jakub Kicinski
Browse files

nexthop: Rename nexthop_free_mpath



nexthop_free_mpath really should be nexthop_free_group. Rename it.

Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4915a404
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ static void nexthop_devhash_add(struct net *net, struct nh_info *nhi)
	hlist_add_head(&nhi->dev_hash, head);
}

static void nexthop_free_mpath(struct nexthop *nh)
static void nexthop_free_group(struct nexthop *nh)
{
	struct nh_group *nhg;
	int i;
@@ -249,7 +249,7 @@ void nexthop_free_rcu(struct rcu_head *head)
	struct nexthop *nh = container_of(head, struct nexthop, rcu);

	if (nh->is_group)
		nexthop_free_mpath(nh);
		nexthop_free_group(nh);
	else
		nexthop_free_single(nh);