From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Damjan Marion via 
lists.fd.io
Sent: Thursday, September 9, 2021 12:01 PM
To: Juraj Linkeš <juraj.lin...@pantheon.tech>
Cc: vpp-dev <vpp-dev@lists.fd.io>; Lijian Zhang <lijian.zh...@arm.com>
Subject: Re: [vpp-dev] AVF interface creation fails on VFs with configured VLAN 
with newer i40e drivers


On 09.09.2021., at 09:14, Juraj Linkeš 
<juraj.lin...@pantheon.tech<mailto:juraj.lin...@pantheon.tech>> wrote:

Hi Damjan, vpp devs,

Upgrading to 2.15.9 i40e driver in CI (from Ubuntu's 2.8.20-k) makes AVF 
interface creation on VFs with configured VLANs fail:
2021/08/30 09:15:27:343 debug avf 0000:91:04.1: request_queues: num_queue_pairs 
1
2021/08/30 09:15:27:434 debug avf 0000:91:04.1: version: major 1 minor 1
2021/08/30 09:15:27:444 debug avf 0000:91:04.1: get_vf_resources: bitmap 
0x180b80a1 (l2 wb-on-itr adv-link-speed vlan-v2 vlan rx-polling rss-pf 
offload-adv-rss-pf offload-fdir-pf)
2021/08/30 09:15:27:445 debug avf 0000:91:04.1: get_vf_resources: num_vsis 1 
num_queue_pairs 1 max_vectors 5 max_mtu 0 vf_cap_flags 0xb0081 (l2 
adv-link-speed vlan rx-polling rss-pf) rss_key_size 52 rss_lut_size 64
2021/08/30 09:15:27:445 debug avf 0000:91:04.1: get_vf_resources_vsi[0]: vsi_id 
27 num_queue_pairs 1 vsi_type 6 qset_handle 21 default_mac_addr 
ba:dc:0f:fe:02:11
2021/08/30 09:15:27:445 debug avf 0000:91:04.1: disable_vlan_stripping
2021/08/30 09:15:27:559 error avf 0000:00:00.0: error: avf_send_to_pf: error 
[v_opcode = 28, v_retval -5]
from avf_create_if: pci-addr 0000:91:04.1

Syslog reveals a bit more:
Aug 30 09:15:27 s55-t13-sut1 kernel: [352169.781206] vfio-pci 0000:91:04.1: 
enabling device (0000 -> 0002)
Aug 30 09:15:27 s55-t13-sut1 kernel: [352170.140729] i40e 0000:91:00.0: Cannot 
disable vlan stripping when port VLAN is set
Aug 30 09:15:27 s55-t13-sut1 kernel: [352170.140737] i40e 0000:91:00.0: VF 17 
failed opcode 28, retval: -5

It looks like this feature (vlan stripping on VFs with VLANs) was removed in 
later versions of the driver. I don't know what the proper solution here is, 
but adding a configuration option to not disable vlan stripping when creating 
AVF interface sound good to me.

I've documented this in https://jira.fd.io/browse/VPP-1995.

Can you try with 2.16.11 and report back same outputs?

I've updated https://jira.fd.io/browse/VPP-1995 with 2.16.11 outputs and 
they're pretty much the same, except the last syslog line is missing.

I just updated https://github.com/dmarion/deb-i40e in case you are using it…

Thanks, we're currently using the intel download pages, but it may be easier to 
use your repo, so we'll keep it in mind for the future.

Juraj
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20112): https://lists.fd.io/g/vpp-dev/message/20112
Mute This Topic: https://lists.fd.io/mt/85479187/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to