From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Daniel Kaminsky <daniel.kaminsky@infinitelocality.com>,
"Zhang, Helin" <helin.zhang@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Loop back mode of the KNI
Date: Fri, 17 Jan 2014 12:19:41 +0100 [thread overview]
Message-ID: <201401171219.41797.thomas.monjalon@6wind.com> (raw)
In-Reply-To: <CA+8v-JyZSmgWRnNhAtjuFy6-+4ajPpS0EcD0VfP+=vsUBdLJmg@mail.gmail.com>
> > 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@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
next prev parent reply other threads:[~2014-01-17 11:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 16:36 Daniel Kaminsky
2013-12-25 0:50 ` Zhang, Helin
2013-12-25 6:57 ` Daniel Kaminsky
2014-01-17 11:19 ` Thomas Monjalon [this message]
2014-01-17 14:28 ` Zhang, Helin
2014-01-17 15:35 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201401171219.41797.thomas.monjalon@6wind.com \
--to=thomas.monjalon@6wind.com \
--cc=daniel.kaminsky@infinitelocality.com \
--cc=dev@dpdk.org \
--cc=helin.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).