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)
commitb838d5e1c5b6e57b10ec8af2268824041e3ea911
tree129ee43f6c1a66e0c5f2c7050c0ac6b87745f958
parent9df16efadd2a8a82731dc76ff656c771e261827f
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