diff options
| author | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:03:50 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:03:50 -0800 |
| commit | 52683c563e38d75819d8ac5e8e9e40505e99e117 (patch) | |
| tree | aa2e9dc1c9727c9439ca64b2ec133d370a1235a6 /include/linux/netdevice.h | |
| parent | a931b32fc32a4c59f711ddea37ed56d414c9ded7 (diff) | |
v2.4.7.5 -> v2.4.7.6
- me: better dirty balancing
- David Miller: sparc and network updates
Diffstat (limited to 'include/linux/netdevice.h')
| -rw-r--r-- | include/linux/netdevice.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index a00adf046d50..003326eb3361 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -562,6 +562,17 @@ extern void dev_init(void); extern int netdev_nit; +/* Post buffer to the network code from _non interrupt_ context. + * see net/core/dev.c for netif_rx description. + */ +static inline int netif_rx_ni(struct sk_buff *skb) +{ + int err = netif_rx(skb); + if (softirq_pending(smp_processor_id())) + do_softirq(); + return err; +} + static inline void dev_init_buffers(struct net_device *dev) { /* WILL BE REMOVED IN 2.5.0 */ |
