]> 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)
commitb8051e3f63e16019a30084b11e29e637f8769ed6
treea9c6c7eabe780b470cb52818872f78f2cee5899e
parentc790680444af696f2d4dcdc4abc7932da70ee6cf
parente6bd85e80392b0ed9edf336ef04cfc96ec174ff2
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>