Verification for questing:linux on machine beldam:

+ uname -a
Linux beldam 6.17.0-7-generic #7-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 18 10:10:29 
UTC 2025 x86_64 GNU/Linux
+ echo 0
+ echo
+ echo
+ echo 0
+ echo
+ echo function
+ echo i40e_vc_reset_vf
+ echo 'p:i40e_probe i40e_ndo_set_vf_link_state netdev=%di vf_id=%si:x32 
link=%dx:x32'
+ echo 1
+ echo 1
+ echo 4
+ sudo tee /sys/class/net/enp176s0f0/device/sriov_numvfs
4
+ sleep 5
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state enable
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state enable, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state disable
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state disable, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ echo 0
+ cp /sys/kernel/debug/tracing/trace /tmp/trace.out
+ cat /tmp/trace.out
# tracer: function
#
# entries-in-buffer/entries-written: 13/13   #P:80
#
#                                _-----=> irqs-off/BH-disabled
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| / _-=> migrate-disable
#                              |||| /     delay
#           TASK-PID     CPU#  |||||  TIMESTAMP  FUNCTION
#              | |         |   |||||     |         |
              ip-2927    [065] .....   468.282609: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x1d0 [i40e]) netdev=0xffff8e7217b05000 
vf_id=0x0 link=0x0
              ip-2927    [065] .....   468.282613: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state
              ip-2938    [064] .....   473.529544: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x1d0 [i40e]) netdev=0xffff8e7217b05000 
vf_id=0x0 link=0x0
              ip-2938    [064] .....   473.529547: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state
              ip-2965    [066] .....   478.671107: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x1d0 [i40e]) netdev=0xffff8e7217b05000 
vf_id=0x0 link=0x1
              ip-2965    [066] .....   478.671111: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state
              ip-2968    [065] .....   483.816621: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x1d0 [i40e]) netdev=0xffff8e7217b05000 
vf_id=0x0 link=0x2
              ip-2971    [025] .....   488.829630: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x1d0 [i40e]) netdev=0xffff8e7217b05000 
vf_id=0x0 link=0x0
              ip-2971    [025] .....   488.829633: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state
              ip-2974    [024] .....   493.975093: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x1d0 [i40e]) netdev=0xffff8e7217b05000 
vf_id=0x0 link=0x0
              ip-2974    [024] .....   493.975096: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state
              ip-2976    [024] .....   499.117811: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x1d0 [i40e]) netdev=0xffff8e7217b05000 
vf_id=0x0 link=0x0
              ip-2976    [024] .....   499.117813: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state

After upgrading to kernel from -proposed:

+ uname -a
Linux beldam 6.17.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 21:44:46 
UTC 2025 x86_64 GNU/Linux
+ echo 0
+ echo
+ echo
+ echo 0
+ echo
+ echo function
+ echo i40e_vc_reset_vf
+ echo 'p:i40e_probe i40e_ndo_set_vf_link_state netdev=%di vf_id=%si:x32 
link=%dx:x32'
+ echo 1
+ echo 1
+ echo 4
+ sudo tee /sys/class/net/enp176s0f0/device/sriov_numvfs
4
+ sleep 5
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state enable
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state enable, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state disable
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state disable, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link show enp176s0f0
2: enp176s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN 
mode DEFAULT group default qlen 1000
    link/ether 40:a6:b7:5d:39:88 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether aa:31:60:41:6f:a1 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 1     link/ether 02:25:ef:ec:ca:6e brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 2     link/ether 7e:dd:7a:09:15:ba brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    vf 3     link/ether 1e:1c:65:fd:d5:48 brd ff:ff:ff:ff:ff:ff, spoof checking 
on, link-state auto, trust off
    altname enp176s0f0np0
    altname enx40a6b75d3988
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ ip link set enp176s0f0 vf 0 state auto
+ sleep 5
+ echo 0
+ cp /sys/kernel/debug/tracing/trace /tmp/trace.out
+ cat /tmp/trace.out
# tracer: function
#
# entries-in-buffer/entries-written: 9/9   #P:80
#
#                                _-----=> irqs-off/BH-disabled
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| / _-=> migrate-disable
#                              |||| /     delay
#           TASK-PID     CPU#  |||||  TIMESTAMP  FUNCTION
#              | |         |   |||||     |         |
              ip-2320    [037] .....   301.711707: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x230 [i40e]) netdev=0xffff88d71a3a0000 
vf_id=0x0 link=0x0
              ip-2354    [037] .....   306.721965: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x230 [i40e]) netdev=0xffff88d71a3a0000 
vf_id=0x0 link=0x0
              ip-2359    [078] .....   311.735339: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x230 [i40e]) netdev=0xffff88d71a3a0000 
vf_id=0x0 link=0x1
              ip-2359    [078] .....   311.735342: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state
              ip-2370    [078] .....   316.881285: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x230 [i40e]) netdev=0xffff88d71a3a0000 
vf_id=0x0 link=0x2
              ip-2373    [078] .....   321.894572: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x230 [i40e]) netdev=0xffff88d71a3a0000 
vf_id=0x0 link=0x0
              ip-2373    [078] .....   321.894574: i40e_vc_reset_vf 
<-i40e_ndo_set_vf_link_state
              ip-2376    [038] .....   327.039968: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x230 [i40e]) netdev=0xffff88d71a3a0000 
vf_id=0x0 link=0x0
              ip-2378    [037] .....   332.049386: i40e_probe: 
(i40e_ndo_set_vf_link_state+0x0/0x230 [i40e]) netdev=0xffff88d71a3a0000 
vf_id=0x0 link=0x0

** Tags removed: verification-needed-questing-linux
** Tags added: verification-done-questing-linux

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130552

Title:
  i40e driver is triggering VF resets on every link state change

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2130552/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to