]> 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)
commit4044bec4986c5449295948dde540123fdc18e68d
tree129ee43f6c1a66e0c5f2c7050c0ac6b87745f958
parent2dbdcacb4b91a9cd1a21be32029304394afeb667
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