[dpdk-users] Help with QinQ insertion on i40e

Raul Negreiros rauln at cpqd.com.br
Fri Sep 15 21:30:56 CEST 2017


I didn't notice that the default configuration in the NIC's queue is to
disable TX offloading. I was using the 'rte_eth_tx_queue_setup' function
with the last parameter 'tx_conf' as NULL, in this way using the default

After configure the 'txq_flags' attribute properly my issue was solved and
the offloading worked perfectly.

Best regards,

Raul Negreiros

On Thu, Sep 14, 2017 at 2:15 PM, Raul Negreiros <rauln at cpqd.com.br> wrote:

> Hi,
> I'm trying to insert QinQ in the packet using the offload feature, but
> unfortunately I'm unsuccessful.
> These are my steps:
> - On device configuration configuration:
> - call 'rte_eth_dev_set_vlan_offload' with the following flags:
> - call 'rte_eth_dev_set_vlan_ether_type' twice with the inner and outer
> types.
> - On packet processing:
> - set the PKT_TX_QINQ_PKT flag on 'ol_flags' attribute;
> - fill the 'vlan_tci' and 'vlan_tci_outer'.
> Did I miss something?
> Obs: My interface's driver is i40e and the DEV_TX_OFFLOAD_QINQ_INSERT flag
> is
> active on tx capabilities.
> Obs2: I've found on 'drivers/net/i40e/i40e_ethdev.c' the following
> comment:
> "Apply double-vlan setting, not implemented yet" in i40e_dev_init_vlan
> function.
> May it means that actually is not possible to use QinQ insertion with this
> driver?
> Best regards,
> Raul Negreiros

More information about the users mailing list