diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-15 09:30:17 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-15 09:30:17 +0400 |
commit | 925068dcdc746236264d1877d3d5df656e87882a (patch) | |
tree | dc7615e1e87a1ca26ee31510c240a1c85fb6f1ad /include | |
parent | 83aa2e964b9b04effa304aaf3c1090b46812a04b (diff) | |
parent | 67fbbe1551b24d1bcab8478407f9b8c713d5596e (diff) | |
download | linux-925068dcdc746236264d1877d3d5df656e87882a.tar.xz |
Merge branch 'davem-next' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 203c5504fe43..b54ec16dfbda 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -828,6 +828,19 @@ static inline void netif_napi_add(struct net_device *dev, set_bit(NAPI_STATE_SCHED, &napi->state); } +/** + * netif_napi_del - remove a napi context + * @napi: napi context + * + * netif_napi_del() removes a napi context from the network device napi list + */ +static inline void netif_napi_del(struct napi_struct *napi) +{ +#ifdef CONFIG_NETPOLL + list_del(&napi->dev_list); +#endif +} + struct packet_type { __be16 type; /* This is really htons(ether_type). */ struct net_device *dev; /* NULL is wildcarded here */ |