aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip6_route.h
diff options
context:
space:
mode:
authorWei Wang <weiwan@google.com>2017-06-17 10:42:34 -0700
committerDavid S. Miller <davem@davemloft.net>2017-06-17 22:54:00 -0400
commit9514528d92d4cbe086499322370155ed69f5d06c (patch)
tree7dafe957ab816de8f51365ce3c00ff5d255a4a5c /include/net/ip6_route.h
parentipv6: take dst->__refcnt for insertion into fib6 tree (diff)
downloadlinux-dev-9514528d92d4cbe086499322370155ed69f5d06c.tar.xz
linux-dev-9514528d92d4cbe086499322370155ed69f5d06c.zip
ipv6: call dst_dev_put() properly
As the intend of this patch series is to completely remove dst gc, we need to call dst_dev_put() to release the reference to dst->dev when removing routes from fib because we won't keep the gc list anymore and will lose the dst pointer right after removing the routes. Without the gc list, there is no way to find all the dst's that have dst->dev pointing to the going-down dev. Hence, we are doing dst_dev_put() immediately before we lose the last reference of the dst from the routing code. The next dst_check() will trigger a route re-lookup to find another route (if there is any). Signed-off-by: Wei Wang <weiwan@google.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip6_route.h')
0 files changed, 0 insertions, 0 deletions