projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9446ee7
)
Fix "NOHZ: local_softirq_pending 08" message.
author
Ben Pfaff
<blp@nicira.com>
Tue, 10 Jun 2008 21:41:04 +0000
(14:41 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 10 Jun 2008 21:41:04 +0000
(14:41 -0700)
Only call netif_rx within an interrupt.
Outside an interrupt, netif_rx_in has to be used.
datapath/dp_dev.c
patch
|
blob
|
history
diff --git
a/datapath/dp_dev.c
b/datapath/dp_dev.c
index 5ac74d12903c1a2233e87d70e796708b36efc1dd..48981376c3d1ab7fcecefa33b5ddec16e1b8678a 100644
(file)
--- a/
datapath/dp_dev.c
+++ b/
datapath/dp_dev.c
@@
-29,7
+29,10
@@
int dp_dev_recv(struct net_device *netdev, struct sk_buff *skb)
struct dp_dev *dp_dev = dp_dev_priv(netdev);
skb->pkt_type = PACKET_HOST;
skb->protocol = eth_type_trans(skb, netdev);
- netif_rx(skb);
+ if (in_interrupt())
+ netif_rx(skb);
+ else
+ netif_rx_ni(skb);
netdev->last_rx = jiffies;
dp_dev->stats.rx_packets++;
dp_dev->stats.rx_bytes += len;