OSDN Git Service

nexthop: Rename nexthop_free_mpath
authorDavid Ahern <dsahern@kernel.org>
Thu, 28 Jan 2021 12:49:13 +0000 (13:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:49:51 +0000 (20:49 -0800)
nexthop_free_mpath really should be nexthop_free_group. Rename it.

Signed-off-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c

index e6dfca4..1deb9e4 100644 (file)
@@ -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);