Thread (18 messages) 18 messages, 3 authors, 2013-05-28

Re: [PATCH v5 net-next 1/5] net: add napi_id and hash

flat view

From: Eliezer Tamir <hidden>
Date: 2013-05-28 08:03:19
Also in: lkml

On 28/05/2013 03:28, Eric Dumazet wrote:
On Mon, 2013-05-27 at 10:44 +0300, Eliezer Tamir wrote:
quoted
+extern void napi_hash_add(struct napi_struct *napi);
+
+/**
+ *	napi_hash_del - remove a NAPI from blobal table
global
Thank you
(my typing is almost as bad as my spelling, please don't tell my mom)
quoted
@@ -166,6 +167,10 @@ static struct list_head offload_base __read_mostly;
  DEFINE_RWLOCK(dev_base_lock);
  EXPORT_SYMBOL(dev_base_lock);

+atomic_t napi_gen_id;
Not sure we need an atomic, we are protected by RTNL anyway.
With an atomic we don't need the RTNL in any of the napi_id functions.
One less thing to worry about when we try to remove the RTNL.

-Eliezer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help