* [dpdk-dev] [vlan offload] does I350 support vlan offload?
@ 2018-02-04 1:26 =?gb18030?B?1ebO0rfnssk=?=
2018-03-02 3:33 ` James Huang
0 siblings, 1 reply; 3+ messages in thread
From: =?gb18030?B?1ebO0rfnssk=?= @ 2018-02-04 1:26 UTC (permalink / raw)
To: =?gb18030?B?ZGV2?=
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 579 bytes --]
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!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [vlan offload] does I350 support vlan offload?
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 ` [dpdk-dev] =?gb18030?b?u9i4tKO6ICBbdmxhbiBvZmZsb2FkXSBkb2VzIEkz?= =?gb18030?q?50_support_vlan_offload=3F?= =?gb18030?B?1ebO0rfnssk=?=
0 siblings, 1 reply; 3+ messages in thread
From: James Huang @ 2018-03-02 3:33 UTC (permalink / raw)
To: 真我风采; +Cc: dev
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!
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dpdk-dev] =?gb18030?b?u9i4tKO6ICBbdmxhbiBvZmZsb2FkXSBkb2VzIEkz?= =?gb18030?q?50_support_vlan_offload=3F?=
2018-03-02 3:33 ` James Huang
@ 2018-03-02 3:38 ` =?gb18030?B?1ebO0rfnssk=?=
0 siblings, 0 replies; 3+ messages in thread
From: =?gb18030?B?1ebO0rfnssk=?= @ 2018-03-02 3:38 UTC (permalink / raw)
To: =?gb18030?B?SmFtZXMgSHVhbmc=?=; +Cc: =?gb18030?B?ZGV2?=
[-- 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!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-02 3:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [dpdk-dev] =?gb18030?b?u9i4tKO6ICBbdmxhbiBvZmZsb2FkXSBkb2VzIEkz?= =?gb18030?q?50_support_vlan_offload=3F?= =?gb18030?B?1ebO0rfnssk=?=
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).