]> git.baikalelectronics.ru Git - kernel.git/commit
nexthops: Move code from remove_nexthop_from_groups to remove_nh_grp_entry
authorDavid Ahern <dsahern@gmail.com>
Tue, 26 May 2020 18:56:14 +0000 (12:56 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 23:06:06 +0000 (16:06 -0700)
commit3fcfb30ba8d205f2df5192e85b9d8629f8cbb4d5
tree0653f6151b5cde90029bbcad0fc0d858b27ef3a3
parentad03e21aa168c0ca07d08b8322193d150e852a7c
nexthops: Move code from remove_nexthop_from_groups to remove_nh_grp_entry

Move nh_grp dereference and check for removing nexthop group due to
all members gone into remove_nh_grp_entry.

Fixes: f770d5650da8 ("nexthop: Add support for nexthop groups")
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/nexthop.c