summaryrefslogtreecommitdiff
path: root/pfinet/loopback.c
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet/loopback.c')
-rw-r--r--pfinet/loopback.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pfinet/loopback.c b/pfinet/loopback.c
index 068cf3c8..e15e4265 100644
--- a/pfinet/loopback.c
+++ b/pfinet/loopback.c
@@ -71,6 +71,13 @@ static int loopback_xmit(struct sk_buff *skb, struct device *dev)
#ifndef LOOPBACK_MUST_CHECKSUM
skb->ip_summed = CHECKSUM_UNNECESSARY;
#endif
+
+ /*
+ * Calling netif_rx() requires locking net_bh_lock, which
+ * has already been done since this function is called by
+ * the net_bh worker thread.
+ */
+
netif_rx(skb);
stats->rx_bytes+=skb->len;