diff options
author | Baruch Siach <baruch@tkos.co.il> | 2008-12-15 15:18:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-16 04:48:29 -0500 |
commit | 2c413a6434dca02387a263dc4ca8009692421998 (patch) | |
tree | ac684707490d56c511cd46129e3a64df7943bb2f /drivers | |
parent | 8953f1282793882a5444924f7a273dc72a43d0a3 (diff) |
enc28j60: use netif_rx_ni() to deliver RX packets
The enc28j60 driver reads incoming packets in the process (workqueue) context,
not in a tasklet or the interrupt context. Thus, we should use netif_rx_ni()
to deliver those packets to the networking layer, instead of netif_rx(). This
way incoming packets don't wait in the incoming queue for the next IRQ to be
serviced.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/enc28j60.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index c414554ac321..36cb6e95b465 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c | |||
@@ -959,7 +959,7 @@ static void enc28j60_hw_rx(struct net_device *ndev) | |||
959 | ndev->stats.rx_packets++; | 959 | ndev->stats.rx_packets++; |
960 | ndev->stats.rx_bytes += len; | 960 | ndev->stats.rx_bytes += len; |
961 | ndev->last_rx = jiffies; | 961 | ndev->last_rx = jiffies; |
962 | netif_rx(skb); | 962 | netif_rx_ni(skb); |
963 | } | 963 | } |
964 | } | 964 | } |
965 | /* | 965 | /* |