netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] ipv6: addrlabel: avoid dirtying ip6addrlbl_entry
@ 2017-10-09 16:52 Eric Dumazet
  2017-10-09 16:52 ` [PATCH net-next 1/2] ipv6: addrlabel: rework ip6addrlbl_get() Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Eric Dumazet @ 2017-10-09 16:52 UTC (permalink / raw)
  To: David S . Miller; +Cc: netdev, Eric Dumazet, Eric Dumazet, Hideaki YOSHIFUJI

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.

Eric Dumazet (2):
  ipv6: addrlabel: rework ip6addrlbl_get()
  ipv6: addrlabel: remove refcounting

 net/ipv6/addrlabel.c | 69 +++++++++++++---------------------------------------
 1 file changed, 17 insertions(+), 52 deletions(-)

-- 
2.14.2.920.gcf0c67979c-goog

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-09 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09 16:52 [PATCH net-next 0/2] ipv6: addrlabel: avoid dirtying ip6addrlbl_entry Eric Dumazet
2017-10-09 16:52 ` [PATCH net-next 1/2] ipv6: addrlabel: rework ip6addrlbl_get() Eric Dumazet
2017-10-09 16:52 ` [PATCH net-next 2/2] ipv6: addrlabel: remove refcounting Eric Dumazet
2017-10-09 17:44 ` [PATCH net-next 0/2] ipv6: addrlabel: avoid dirtying ip6addrlbl_entry Martin KaFai Lau
2017-10-09 17:47   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).