[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111020.161741.1961240945982687125.davem@davemloft.net>
Date: Thu, 20 Oct 2011 16:17:41 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: mihai.maruseac@...il.com
Cc: shemminger@...tta.com, eric.dumazet@...il.com,
mirq-linux@...e.qmqm.pl, therbert@...gle.com, jpirko@...hat.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
dbaluta@...acom.com, mmaruseac@...acom.com
Subject: Re: [PATCH] dev: use name hash for dev_seq_ops
From: Mihai Maruseac <mihai.maruseac@...il.com>
Date: Thu, 20 Oct 2011 11:01:57 +0300
> Instead of using the dev->next chain and trying to resync at each call to
> dev_seq_start, use the name hash, keeping the bucket and the offset in
> seq->private field.
I'm totally fine with this patch from a technical perspective, but I'd
like one small thing tidied up before I apply this.
> + unsigned int pos; /* bucket << 24 + offset */
Please don't mention this as a constant in the comment, if we ever
change NETDEV_HASHBITS this comment will be inaccurate.
I'd suggest putting the BUCKET_SPACE define before the dev_iter_state
definition, and using BUCKET_SPACE in the comment instead of 24.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists