DPDK patches and discussions
 help / color / mirror / Atom feed
From: =?gb18030?B?1ebO0rfnssk=?= <1534057243@qq.com>
To: =?gb18030?B?SmFtZXMgSHVhbmc=?= <jamsphon@gmail.com>
Cc: =?gb18030?B?ZGV2?= <dev@dpdk.org>
Subject: [dpdk-dev] =?gb18030?b?u9i4tKO6ICBbdmxhbiBvZmZsb2FkXSBkb2VzIEkz?= =?gb18030?q?50_support_vlan_offload=3F?=
Date: Fri, 2 Mar 2018 11:38:31 +0800	[thread overview]
Message-ID: <tencent_5978492763055759E2FA34307879DAC58508@qq.com> (raw)
In-Reply-To: <CAFpuyR6hAbDxHZY-iay7B2+0OXM7=cU5MHJgXV33z527MwyyPg@mail.gmail.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 1181 bytes --]

Hi£º
  after add mbuf->l2_len as below, it works now.
  mbuf->vlan_tci = vlan_id;
  mbuf->ol_flags |= PKT_TX_VLAN_PKT;
  mbuf->l2_len = sizeof(struct ether_hdr);



thanks!


------------------ ԭʼÓʼþ ------------------
·¢¼þÈË: "James Huang"<jamsphon@gmail.com>;
·¢ËÍʱ¼ä: 2018Äê3ÔÂ2ÈÕ(ÐÇÆÚÎå) ÖÐÎç11:33
ÊÕ¼þÈË: "ÕæÎÒ·ç²É"<1534057243@qq.com>;
³­ËÍ: "dev"<dev@dpdk.org>; 
Ö÷Ìâ: Re: [dpdk-dev] [vlan offload] does I350 support vlan offload?



I got same issue, is there any possible way to make it work?

On Feb 3, 2018 5:26 PM, "ÕæÎÒ·ç²É" <1534057243@qq.com> wrote:
Hi, All:
      I want to use I350 vlan offload feature to impove performance, but get in trouble.
      After enable port_conf.hw_vlan_strip, i can get vlan id in mbuf->vlan_tci, which indicate vlan rx offload is ok.
 but when enable vlan tx offload as below steps,
     a. set vlan id in mbuf->vlan_tci
     b. set PKT_TX_VLAN_PKT in mbuf->ol_flags
 then call rte_eth_tx_burst to transmit, and return value is greater than 0(actually 1), but cannot dump pkt with vlan id
 on opposite server.
 
 
    So does I350 supports vlan tx offload? or my usage have error ?
 
 
 Thanks!

      reply	other threads:[~2018-03-02  3:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-04  1:26 [dpdk-dev] [vlan offload] does I350 support vlan offload?  =?gb18030?B?1ebO0rfnssk=?=
2018-03-02  3:33 ` James Huang
2018-03-02  3:38   `  =?gb18030?B?1ebO0rfnssk=?= [this message]

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=tencent_5978492763055759E2FA34307879DAC58508@qq.com \
    --to=1534057243@qq.com \
    --cc=dev@dpdk.org \
    --cc=jamsphon@gmail.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).