]> git.baikalelectronics.ru Git - kernel.git/commit
net: Adjust TX queue kobjects if number of queues changes during unregister
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 15 Feb 2011 19:39:21 +0000 (19:39 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 15 Feb 2011 19:45:33 +0000 (19:45 +0000)
commit99c8ceb2b77c1c41505a5188934bb5cb0f8dcdac
tree004f217312262babf57bec4c0c816d71cedc875e
parent370b3d3755ed964749e6e5d83fb5ba08d2e82517
net: Adjust TX queue kobjects if number of queues changes during unregister

If the root qdisc for a net device is mqprio, and the driver's
ndo_setup_tc() operation dynamically adds and remvoes TX queues,
netif_set_real_num_tx_queues() will be called during device
unregistration to remove the extra TX queues when the qdisc is
destroyed.  Currently this causes the corresponding kobjects
to be leaked, and the device's reference count never drops to 0.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
net/core/dev.c