From: Bruce Richardson Date: Wed, 12 Feb 2014 16:23:00 +0000 (+0000) Subject: kni: fix packet loss in loopback mode X-Git-Tag: spdx-start~11028 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e01d69d51c7913936e98867bc414b71bf1dba989;p=dpdk.git kni: fix packet loss in loopback mode kni_net fixed to prevent losing packet bytes when doing loopback. Signed-off-by: Bruce Richardson Reported-by: Daniel Kaminsky --- diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_net.c index 4616ac4909..fb4b3a89df 100644 --- a/lib/librte_eal/linuxapp/kni/kni_net.c +++ b/lib/librte_eal/linuxapp/kni/kni_net.c @@ -331,7 +331,6 @@ kni_net_rx_lo_fifo_skb(struct kni_dev *kni) skb_reserve(skb, 2); memcpy(skb_put(skb, len), data_kva, len); skb->dev = dev; - skb->protocol = eth_type_trans(skb, dev); skb->ip_summed = CHECKSUM_UNNECESSARY; dev_kfree_skb(skb); } @@ -347,7 +346,6 @@ kni_net_rx_lo_fifo_skb(struct kni_dev *kni) skb_reserve(skb, 2); memcpy(skb_put(skb, len), data_kva, len); skb->dev = dev; - skb->protocol = eth_type_trans(skb, dev); skb->ip_summed = CHECKSUM_UNNECESSARY; kni->stats.rx_bytes += len;