Skip to content

Commit

Permalink
nexthop: Rename nexthop_free_mpath
Browse files Browse the repository at this point in the history
nexthop_free_mpath really should be nexthop_free_group. Rename it.

Signed-off-by: David Ahern <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
dsahern authored and kuba-moo committed Jan 29, 2021
1 parent 4915a40 commit 5d1f0f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/nexthop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 5d1f0f0

Please sign in to comment.