diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-09 13:18:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-09 13:18:35 -0400 |
commit | 3cd73eedde34c5fd88d62d8523c4260970fdc6fb (patch) | |
tree | 8aa8915ae6befb482a649365c32d7e5526d9755d /include/linux/netdevice.h | |
parent | c51e078f82096a7d35ac8ec2416272e843a0e1c4 (diff) | |
parent | 23aee82e75c1ced9492cbff6090b8e213d95945e (diff) |
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/netdev-2.6
* 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/netdev-2.6:
[PATCH] bcm43xx: Fix access to non-existent PHY registers
[PATCH] bcm43xx: Fix array overrun in bcm43xx_geo_init
[PATCH] bcm43xx: check for valid MAC address in SPROM
[PATCH] ieee80211: Fix A band channel count (resent)
[PATCH] bcm43xx: fix iwmode crash when down
[PATCH] softmac: make non-operational after being stopped
[PATCH] softmac: don't reassociate if user asked for deauthentication
spidernet: enable support for bcm5461 ethernet phy
spidernet: introduce new setting
Fix RTL8019AS init for Toshiba RBTX49xx boards
au1000_eth.c: use ether_crc() from <linux/crc32.h>
sky2: version 1.3
Add more support for the Yukon Ultra chip found in dual core centino laptops.
sky2: synchronize irq on remove
sky2: dont write status ring
sky2: edge triggered workaround enhancement
sky2: use mask instead of modulo operation
sky2: tx ring index mask fix
sky2: status irq hang fix
sky2: backout NAPI reschedule
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 309f9190a922..a461b51d6076 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -831,21 +831,19 @@ static inline void netif_rx_schedule(struct net_device *dev) | |||
831 | __netif_rx_schedule(dev); | 831 | __netif_rx_schedule(dev); |
832 | } | 832 | } |
833 | 833 | ||
834 | 834 | /* Try to reschedule poll. Called by dev->poll() after netif_rx_complete(). | |
835 | static inline void __netif_rx_reschedule(struct net_device *dev, int undo) | 835 | * Do not inline this? |
836 | { | 836 | */ |
837 | dev->quota += undo; | ||
838 | list_add_tail(&dev->poll_list, &__get_cpu_var(softnet_data).poll_list); | ||
839 | __raise_softirq_irqoff(NET_RX_SOFTIRQ); | ||
840 | } | ||
841 | |||
842 | /* Try to reschedule poll. Called by dev->poll() after netif_rx_complete(). */ | ||
843 | static inline int netif_rx_reschedule(struct net_device *dev, int undo) | 837 | static inline int netif_rx_reschedule(struct net_device *dev, int undo) |
844 | { | 838 | { |
845 | if (netif_rx_schedule_prep(dev)) { | 839 | if (netif_rx_schedule_prep(dev)) { |
846 | unsigned long flags; | 840 | unsigned long flags; |
841 | |||
842 | dev->quota += undo; | ||
843 | |||
847 | local_irq_save(flags); | 844 | local_irq_save(flags); |
848 | __netif_rx_reschedule(dev, undo); | 845 | list_add_tail(&dev->poll_list, &__get_cpu_var(softnet_data).poll_list); |
846 | __raise_softirq_irqoff(NET_RX_SOFTIRQ); | ||
849 | local_irq_restore(flags); | 847 | local_irq_restore(flags); |
850 | return 1; | 848 | return 1; |
851 | } | 849 | } |