]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit340a1c0bb9e30adf7511ed9d7c0e0736bbb87c14
treed856614a6a619320ac27228f043013f3e8ea152c
parent5bdb4f4c91ea6b36fc47745e3e485f58fb544ac4
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