]> err.no Git - linux-2.6/commit
net: add netif_napi_del function to allow for removal of napistructs
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 8 Jul 2008 22:13:05 +0000 (15:13 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 11 Jul 2008 05:20:33 +0000 (01:20 -0400)
commitd8156534040996f6a93a24d3592d5d587f2587e5
tree3b9528f1551560502af9d8686b4615551fe38795
parentd3352520273426e4c16e91d189aa8aa7ee5e96c5
net: add netif_napi_del function to allow for removal of napistructs

Adds netif_napi_del function which is used to remove the napi struct from
the netdev napi_list in cases where CONFIG_NETPOLL was enabled.
The motivation for adding this is to handle the case in which the number of
queues on a device changes due to a configuration change.  Previously the
napi structs for each queue would be left in the list until the netdev was
freed.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
include/linux/netdevice.h