]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: initialize rt6->rt6i_uncached in all pre-allocated dst entries
authorWei Wang <weiwan@google.com>
Fri, 21 Jun 2019 00:36:38 +0000 (17:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Jun 2019 20:24:17 +0000 (13:24 -0700)
commit3107f6e334766824c59450aba8b45c2ad4477c92
tree18a8ce26344bb8780ac26029f3606f29ad32f229
parent5b316b2d6f8728c76d73cc3e3a6a0d5b5cacd7f8
ipv6: initialize rt6->rt6i_uncached in all pre-allocated dst entries

Initialize rt6->rt6i_uncached on the following pre-allocated dsts:
net->ipv6.ip6_null_entry
net->ipv6.ip6_prohibit_entry
net->ipv6.ip6_blk_hole_entry

This is a preparation patch for later commits to be able to distinguish
dst entries in uncached list by doing:
!list_empty(rt6->rt6i_uncached)

Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c