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"<jamsp...@gmail.com>;
????????: 2018??3??2??(??????) ????11:33
??????: "????????"<1534057...@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, "????????" <1534057...@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 via email to