Thread (4 messages) flat view 4 messages, 3 authors, 2012-01-17

Re: [PATCH net] mlx4_en: set number of rx rings used by RSS using ethtool

From: David Miller <davem@davemloft.net>
Date: 2012-01-17 17:18:48

From: Yevgeny Petrilin <redacted>
Date: Tue, 17 Jan 2012 18:50:24 +0200
+	/* RSS table size must be an order of 2 */
+	if (rss_rings != (1 << order_base_2(rss_rings)))
+		return -EINVAL;
This is an obscure way to make this kind of test.

The canonical way is:

	if (is_power_of_2(rss_rings))
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help