Re: [dpdk-users] i40eVF pmd vlan id handling

2020-04-16 Thread Dey, Souvik
Hi Beilei, Yes , as per our requirement, we need to have vlan stripped disabled, when we enable vlan filter and add vlan to the PF from the guest, so that the vlan id comes upto the app in the packet itself without striping. We also tried to call rte_vlan_insert in the packet receive side,

Re: [dpdk-users] i40eVF pmd vlan id handling

2020-04-13 Thread Xing, Beilei
Hi Souvik, With kernel PF + DPDK VF, enable vlan filter and disable vlan strip on VF side, is this your requirement? If yes, I think you can do . vlan_offload_set after doing . vlan_filter_set on VF side. BR, Beilei From: Dey, Souvik Sent: Tuesday, April 14, 2020 4:04 AM To: d...@dpdk.org; us

Re: [dpdk-users] i40eVF pmd vlan id handling

2020-04-13 Thread Dey, Souvik
On debugging further it looks like that linux driver enables vlan_striping by default when VIRTCHNL_OP_ADD_VLAN is sent to the PF. static int i40e_vc_add_vlan_msg(struct i40e_vf *vf, u8 *msg) { . i40e_vlan_stripping_enable(vsi); } Due to this when ever we enable vlan o

[dpdk-users] i40eVF pmd vlan id handling

2020-04-13 Thread Dey, Souvik
Hi All, I am using DPDK 18.11.2 and i40e PF linux driver on the host 2.4.6. I see there, when I enable DEV_RX_OFFLOAD_VLAN_FILTER from the DPDK app, and then configure the specific vlan id using rte_eth_dev_vlan_filter(). As per DPDK code by default when we do dev_configure, we call i40e