[dpdk-dev] 回复: [vlan offload] does I350 support vlan offload?

真我风采 1534057243 at qq.com
Fri Mar 2 04:38:31 CET 2018


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 at gmail.com>;
发送时间: 2018年3月2日(星期五) 中午11:33
收件人: "真我风采"<1534057243 at qq.com>;
抄送: "dev"<dev at 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 at 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!


More information about the dev mailing list