]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: mark DST_NOGC and remove the operation of dst_free()
authorWei Wang <weiwan@google.com>
Sat, 17 Jun 2017 17:42:32 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jun 2017 02:54:00 +0000 (22:54 -0400)
commit42239d3fee304d993e9641eaac435e65c9ec2a37
tree129ee43f6c1a66e0c5f2c7050c0ac6b87745f958
parent0d2b4d50762b0773aab446e747d90322cd1f8507
ipv4: mark DST_NOGC and remove the operation of dst_free()

With the previous preparation patches, we are ready to get rid of the
dst gc operation in ipv4 code and release dst based on refcnt only.
So this patch adds DST_NOGC flag for all IPv4 dst and remove the calls
to dst_free().
At this point, all dst created in ipv4 code do not use the dst gc
anymore and will be destroyed at the point when refcnt drops to 0.

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>
net/ipv4/fib_semantics.c
net/ipv4/route.c