> > From: Daniel Kaminsky [...] > > > But when running with *lo_mode=lo_mode_fifo_skb *the packets on the > > > egress doesn't include the first 14 bytes (the ethernet header) although > > > the packets size doesn't change.
> On Wed, Dec 25, 2013 at 2:50 AM, Zhang, Helin <helin.zhang at intel.com> > wrote: [...] > > Yes. That's a bug, and it will be fixed in later DPDK releases. 25/12/2013 07:57, Daniel Kaminsky: [...] > The "fix" below works for me but I don't think it's complete and correct > for all kernels. > > --- src/kernel/fast_kni/kni_net.c > +++ src/kernel/fast_kni/kni_net.c > @@ -353,6 +353,12 @@ > kni->stats.rx_bytes += len; > kni->stats.rx_packets++; > > + /* adjust the skb */ > + if (likely(skb_mac_header_was_set(skb))) { > + skb->len += ETH_HLEN; > + skb->data -= ETH_HLEN; > + } > + > /* call tx interface */ > kni_net_tx(skb, dev); > } Thanks Daniel. Please Helin, could you share the complete patch in case Daniel's one is not sufficient ? -- Thomas