Skip to contentSkip to conversation

kni: use netif_rx instead of netif_receive_skb in which ocurr deallock on userpace contex

PATCH Superseded Yao-Po Wang 2 participants 2 messages Jul 10, 2014 – Jul 11, 2014 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kni: use netif_rx instead of netif_receive_skb in which ocurr deallock on userpace contex

---
 lib/librte_eal/linuxapp/kni/kni_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eal/linuxapp/kni/kni_net.c +1 -1
index d3c0190..28cc5ab 100644
@@ -179,7 +179,7 @@ kni_net_rx_normal(struct kni_dev *kni)
 			skb->ip_summed = CHECKSUM_UNNECESSARY;
 
 			/* Call netif interface */
-			netif_receive_skb(skb);
+			netif_rx(skb);
 
 			/* Update statistics */
 			kni->stats.rx_bytes += len;
Signature · 1 line
2.0.0
#2 lore raw
In reply to a message not in the archive

Hi,

Thank you for sending this patch.
Please, could you re-send it with a more detailed explanation and a Signed-off-by line?

There is a how-to for patch contributions here:
http://dpdk.org/dev#send

2014-07-11 01:04, Yao-Po Wang:

Quoted 17 lines
---
 lib/librte_eal/linuxapp/kni/kni_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/lib/librte_eal/linuxapp/kni/kni_net.c index d3c0190..28cc5ab 100644

lib/librte_eal/linuxapp/kni/kni_net.c +1 -1
@@ -179,7 +179,7 @@ kni_net_rx_normal(struct kni_dev *kni)
 			skb->ip_summed = CHECKSUM_UNNECESSARY;
 
 			/* Call netif interface */
-			netif_receive_skb(skb);
+			netif_rx(skb);
 
 			/* Update statistics */
 			kni->stats.rx_bytes += len;