]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipv6-addrlabel-avoid-dirtying-ip6addrlbl_entry'
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 17:47:30 +0000 (10:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 17:47:30 +0000 (10:47 -0700)
commitf4a32c69f9d88135676d96e3d5728b555d217048
treea9c6c7eabe780b470cb52818872f78f2cee5899e
parent5bdb4f4c91ea6b36fc47745e3e485f58fb544ac4
parent98b8581c225a3c50b9b4b5b80c8390cc2e1815d8
Merge branch 'ipv6-addrlabel-avoid-dirtying-ip6addrlbl_entry'

Eric Dumazet says:

====================
ipv6: addrlabel: avoid dirtying ip6addrlbl_entry

The refcount on ip6addrlbl_entry is only used to make sure ip6addrlbl_entry
does not disappear while ip6addrlbl_get() is allocating an skb.

We can instead allocate skb first, then use RCU, so that we no longer need
to refcount these structures.
====================

Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>