ipv6: addrlabel: rework ip6addrlbl_get()
authorEric Dumazet <edumazet@google.com>
Mon, 9 Oct 2017 16:52:24 +0000 (09:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 17:47:30 +0000 (10:47 -0700)
commit66c77ff3a049a1d182c9c78cc6286bb1ceee70db
treed856614a6a619320ac27228f043013f3e8ea152c
parent1ee87d7a315aaf42b999c376dec508c8b3728b12
ipv6: addrlabel: rework ip6addrlbl_get()

If we allocate skb before the lookup, we can use RCU
without the need of ip6addrlbl_hold()

This means that the following patch can get rid of refcounting.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrlabel.c