net: cleanups in RX queue allocation
authorTom Herbert <therbert@google.com>
Mon, 18 Oct 2010 18:00:16 +0000 (18:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2010 09:27:59 +0000 (02:27 -0700)
commitbd25fa7ba59cd26094319dfba0011b48465f7355
tree34527956dacf0309d30257b02272e97e729219c9
parent55513fb4281464e97aa1ff2b9c906ca5aed917c5
net: cleanups in RX queue allocation

Clean up in RX queue allocation.  In netif_set_real_num_rx_queues
return error on attempt to set zero queues, or requested number is
greater than number of allocated queues.  In netif_alloc_rx_queues,
do BUG_ON if queue_count is zero.

Signed-off-by: Tom Herbert <therbert@google.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c