]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix rxq ref counting
authorTom Herbert <therbert@google.com>
Thu, 7 Oct 2010 10:09:10 +0000 (10:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2010 21:34:32 +0000 (14:34 -0700)
commit6a59d00a7df469831a3e6d9fc9456718df562ff5
treeb5d36552a72ac630e7024d855e564e63db93bb6a
parent7468221e868238b887055e01afcd5b5b61840a66
net: Fix rxq ref counting

The rx->count reference is used to track reference counts to the
number of rx-queue kobjects created for the device.  This patch
eliminates initialization of the counter in netif_alloc_rx_queues
and instead increments the counter each time a kobject is created.
This is now symmetric with the decrement that is done when an object is
released.

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
net/core/net-sysfs.c