Skip to contentSkip to conversation

DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

DISCUSSION Zhongliang Shu 2 participants 5 messages Nov 3, 2015 – Nov 11, 2015

lore
Share & tools
lore
#0 lore raw

Hi, Guys:
I have developed a VM to use SRIOV VF of DPDK2.1 libraryand its PF NIC is interl X552 NIC. The VM is deployed on KVM on Linux box. NIC Inforoot@localhost:~# modinfo ixgbe
filename:       /lib/modules/3.14.49-rt46-WR7.0.0.5_ovp/kernel/drivers/juniper/x552-nic/ixgbe.ko
version:        4.2.0.4.1-unreleased
license:        GPL
description:    Intel(R) 10 Gigabit PCI Express Network Driver
Linux Box InfoLinux localhost 3.14.49-rt46-WR7.0.0.5_ovp #1 SMP PREEMPT RT Mon Oct 26 12:24:18 PDT 2015 x86_64 GNU/Linux When the VM start, and its correct corresponding MAC is pushed into PF.
4: sxe0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master eth1br state UP mode DEFAULT group default qlen 1000 link/ether 88:a2:5e:09:bd:c1 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
    vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
    vf 2 MAC 52:54:00:ba:fa:f7, spoof checking on, link-state auto
    vf 3 MAC 52:54:00:ee:e6:0d, spoof checking on, link-state auto
Linux Host dmesg:root@localhost:/lib# dmesg

[62995.451770] pci-stub 0000:03:10.4: claimed by stub
[62995.465783] ixgbe 0000:03:00.0: setting MAC 52:54:00:ba:fa:f7 on VF 2
[62995.465785] ixgbe 0000:03:00.0: Reload the VF driver to make this change effective.
[62995.520671] device vnet4 entered promiscuous mode
[62995.520900] eth0br: port 4(vnet4) entered forwarding state
[62995.520911] eth0br: port 4(vnet4) entered forwarding state
[62995.666671] pci-stub 0000:03:10.4: enabling device (0000 -> 0002)
[62998.148072] pci-stub 0000:03:10.4: kvm assign device
[63010.548139] eth0br: port 4(vnet4) entered forwarding state
[63050.387806] pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X
[63050.399811] pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X
[63289.573419] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf 2
[63290.033229] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf 2
[63953.063867] ixgbe 0000:03:00.0: Malicious event on VF 2 tx:100000 rx:0
Several questions about the log msgs
1): its keep to see the log msgs:     [63289.573419] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf 2
     [63290.033229] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf 2    what reason cause these msg?
2): When try ping from the VM,   it fails and there has msg:
      [63953.063867] ixgbe 0000:03:00.0: Malicious event on VF 2 tx:100000 rx:0 

    what reason causes this msg?
3): Does DPDK2.1 VF and X552 PF is tested and supported?
By the way, the SRIOV of this VM work fine for X550 NIC and  82580 NIC, Thanks.

#1 lore raw

Hi Zhongliang,

Quoted 43 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhongliang Shu
Sent: Wednesday, November 4, 2015 7:07 AM
To: [email protected]
Subject: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

Hi, Guys:
I have developed a VM to use SRIOV VF of DPDK2.1 libraryand its PF NIC is interl X552 NIC. The VM is deployed on KVM on Linux box.
NIC Inforoot@localhost:~# modinfo ixgbe
filename:       /lib/modules/3.14.49-rt46- WR7.0.0.5_ovp/kernel/drivers/juniper/x552-nic/ixgbe.ko
version:        4.2.0.4.1-unreleased
license:        GPL
description:    Intel(R) 10 Gigabit PCI Express Network Driver Linux Box InfoLinux localhost 3.14.49-rt46-WR7.0.0.5_ovp #1 SMP PREEMPT RT Mon Oct 26 12:24:18 PDT 2015 x86_64 GNU/Linux When the VM start, and its correct corresponding MAC is pushed into PF.
4: sxe0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master eth1br state UP mode DEFAULT group default qlen 1000
    link/ether 88:a2:5e:09:bd:c1 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto vf 2 MAC 52:54:00:ba:fa:f7, spoof checking on, link-state auto vf 3 MAC 52:54:00:ee:e6:0d, spoof checking on, link-state auto Linux Host

dmesg:root@localhost:/lib# dmesg [62995.451770] pci-stub 0000:03:10.4:
claimed by stub [62995.465783] ixgbe 0000:03:00.0: setting MAC
52:54:00:ba:fa:f7 on VF 2 [62995.465785] ixgbe 0000:03:00.0: Reload the VF
driver to make this change effective.
[62995.520671] device vnet4 entered promiscuous mode [62995.520900]
eth0br: port 4(vnet4) entered forwarding state [62995.520911] eth0br: port
4(vnet4) entered forwarding state [62995.666671] pci-stub 0000:03:10.4:
enabling device (0000 -> 0002) [62998.148072] pci-stub 0000:03:10.4: kvm
assign device [63010.548139] eth0br: port 4(vnet4) entered forwarding state
[63050.387806] pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X [63050.399811]
pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X [63289.573419] ixgbe 0000:03:00.0
sxe0: VF Reset msg received from vf 2 [63290.033229] ixgbe 0000:03:00.0 sxe0:
VF Reset msg received from vf 2 [63953.063867] ixgbe 0000:03:00.0: Malicious
event on VF 2 tx:100000 rx:0 Several questions about the log msgs
1): its keep to see the log msgs:     [63289.573419] ixgbe 0000:03:00.0 sxe0: VF
Reset msg received from vf 2
     [63290.033229] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf
Quoted 8 lines
2    what reason cause these msg?
2): When try ping from the VM,   it fails and there has msg:
      [63953.063867] ixgbe 0000:03:00.0: Malicious event on VF 2 tx:100000
rx:0
    what reason causes this msg?
3): Does DPDK2.1 VF and X552 PF is tested and supported?
By the way, the SRIOV of this VM work fine for X550 NIC and  82580 NIC,
Thanks.

I'm afraid x552 is not supported yet. Would you like to give me the device id to confirm that?

#2 lore raw

Hi,  Wenzhuo:
The Dev ID is 15a8 (device_id = 5544, vendor_id = 32902)About SR-IOV between this NIC and DPDK2.1? Or when DPDK will support SR-IOV for this NIC?

Thanks.

     On Tuesday, November 3, 2015 6:13 PM, "Lu, Wenzhuo" <[email protected]> wrote:

Hi Zhongliang,

Quoted 43 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhongliang Shu
Sent: Wednesday, November 4, 2015 7:07 AM
To: [email protected]
Subject: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

Hi, Guys:
I have developed a VM to use SRIOV VF of DPDK2.1 libraryand its PF NIC is interl X552 NIC. The VM is deployed on KVM on Linux box.
NIC Inforoot@localhost:~# modinfo ixgbe
filename:       /lib/modules/3.14.49-rt46- WR7.0.0.5_ovp/kernel/drivers/juniper/x552-nic/ixgbe.ko
version:        4.2.0.4.1-unreleased
license:        GPL
description:    Intel(R) 10 Gigabit PCI Express Network Driver Linux Box InfoLinux localhost 3.14.49-rt46-WR7.0.0.5_ovp #1 SMP PREEMPT RT Mon Oct 26 12:24:18 PDT 2015 x86_64 GNU/Linux When the VM start, and its correct corresponding MAC is pushed into PF.
4: sxe0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master eth1br state UP mode DEFAULT group default qlen 1000
    link/ether 88:a2:5e:09:bd:c1 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto vf 2 MAC 52:54:00:ba:fa:f7, spoof checking on, link-state auto vf 3 MAC 52:54:00:ee:e6:0d, spoof checking on, link-state auto Linux Host

dmesg:root@localhost:/lib# dmesg [62995.451770] pci-stub 0000:03:10.4:
claimed by stub [62995.465783] ixgbe 0000:03:00.0: setting MAC
52:54:00:ba:fa:f7 on VF 2 [62995.465785] ixgbe 0000:03:00.0: Reload the VF
driver to make this change effective.
[62995.520671] device vnet4 entered promiscuous mode [62995.520900]
eth0br: port 4(vnet4) entered forwarding state [62995.520911] eth0br: port
4(vnet4) entered forwarding state [62995.666671] pci-stub 0000:03:10.4:
enabling device (0000 -> 0002) [62998.148072] pci-stub 0000:03:10.4: kvm
assign device [63010.548139] eth0br: port 4(vnet4) entered forwarding state
[63050.387806] pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X [63050.399811]
pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X [63289.573419] ixgbe 0000:03:00.0
sxe0: VF Reset msg received from vf 2 [63290.033229] ixgbe 0000:03:00.0 sxe0:
VF Reset msg received from vf 2 [63953.063867] ixgbe 0000:03:00.0: Malicious
event on VF 2 tx:100000 rx:0 Several questions about the log msgs
1): its keep to see the log msgs:     [63289.573419] ixgbe 0000:03:00.0 sxe0: VF
Reset msg received from vf 2
     [63290.033229] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf
Quoted 8 lines
2    what reason cause these msg?
2): When try ping from the VM,   it fails and there has msg:
      [63953.063867] ixgbe 0000:03:00.0: Malicious event on VF 2 tx:100000
rx:0
    what reason causes this msg?
3): Does DPDK2.1 VF and X552 PF is tested and supported?
By the way, the SRIOV of this VM work fine for X550 NIC and  82580 NIC,
Thanks.

I'm afraid x552 is not supported yet. Would you like to give me the device id to confirm that?

#3 lore raw

Hi Zhongliang,
You use the PF kernel driver 4.2.0, right?
I’m surprised. Because the newest ixgbe kernel driver I see is 4.1.5. And it doesn’t support 15a8 officially.

From: Zhongliang Shu [mailto:[email protected]]
Sent: Saturday, November 7, 2015 2:03 PM
To: Lu, Wenzhuo; [email protected]
Subject: Re: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

Hi, Wenzhuo:

The Dev ID is 15a8 (device_id = 5544, vendor_id = 32902) About SR-IOV between this NIC and DPDK2.1?

Or when DPDK will support SR-IOV for this NIC?

Thanks.

On Tuesday, November 3, 2015 6:13 PM, "Lu, Wenzhuo" <[email protected]<mailto:[email protected]>> wrote:

Hi Zhongliang,

Quoted 43 lines

-----Original Message-----
From: dev [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Zhongliang Shu
Sent: Wednesday, November 4, 2015 7:07 AM
To: [email protected]<mailto:[email protected]>
Subject: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

Hi, Guys:
I have developed a VM to use SRIOV VF of DPDK2.1 libraryand its PF NIC is interl X552 NIC. The VM is deployed on KVM on Linux box.
NIC Inforoot@localhost<mailto:Inforoot@localhost>:~# modinfo ixgbe
filename: /lib/modules/3.14.49-rt46-
WR7.0.0.5_ovp/kernel/drivers/juniper/x552-nic/ixgbe.ko

version:        4.2.0.4.1-unreleased
license:        GPL
description:    Intel(R) 10 Gigabit PCI Express Network Driver Linux Box

InfoLinux localhost 3.14.49-rt46-WR7.0.0.5_ovp #1 SMP PREEMPT RT Mon Oct 26 12:24:18 PDT 2015 x86_64 GNU/Linux When the VM start, and its correct corresponding MAC is pushed into PF.
4: sxe0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master eth1br state UP mode DEFAULT group default qlen 1000

    link/ether 88:a2:5e:09:bd:c1 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
    vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
    vf 2 MAC 52:54:00:ba:fa:f7, spoof checking on, link-state auto
    vf 3 MAC 52:54:00:ee:e6:0d, spoof checking on, link-state auto Linux Host
dmesg:root@localhost<mailto:root@localhost>:/lib# dmesg [62995.451770] pci-stub 0000:03:10.4:
claimed by stub [62995.465783] ixgbe 0000:03:00.0: setting MAC
52:54:00:ba:fa:f7 on VF 2 [62995.465785] ixgbe 0000:03:00.0: Reload the VF
driver to make this change effective.
[62995.520671] device vnet4 entered promiscuous mode [62995.520900]
eth0br: port 4(vnet4) entered forwarding state [62995.520911] eth0br: port
4(vnet4) entered forwarding state [62995.666671] pci-stub 0000:03:10.4:
enabling device (0000 -> 0002) [62998.148072] pci-stub 0000:03:10.4: kvm
assign device [63010.548139] eth0br: port 4(vnet4) entered forwarding state
[63050.387806] pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X [63050.399811]
pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X [63289.573419] ixgbe 0000:03:00.0
sxe0: VF Reset msg received from vf 2 [63290.033229] ixgbe 0000:03:00.0 sxe0:
VF Reset msg received from vf 2 [63953.063867] ixgbe 0000:03:00.0: Malicious
event on VF 2 tx:100000 rx:0 Several questions about the log msgs
1): its keep to see the log msgs:     [63289.573419] ixgbe 0000:03:00.0 sxe0: VF
Reset msg received from vf 2
     [63290.033229] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf
Quoted 8 lines
2    what reason cause these msg?
2): When try ping from the VM,   it fails and there has msg:
      [63953.063867] ixgbe 0000:03:00.0: Malicious event on VF 2 tx:100000
rx:0
    what reason causes this msg?
3): Does DPDK2.1 VF and X552 PF is tested and supported?
By the way, the SRIOV of this VM work fine for X550 NIC and  82580 NIC,
Thanks.

I'm afraid x552 is not supported yet. Would you like to give me the device id to confirm that?

#4 lore raw

Hi Zhongliang,
After looked at the log messages, I think the problem is that VF is reset by PF.
For there's a feature named "malicious driver detection". It means the HW will check if there's malicious behavior on VF. If so, VF will be reset. For there's many reasons, for example, the packet length is not correct, I'm not sure what malicious behavior you hit. This feature is on by default. As it's for untrusted VM, may I suggest you to close it and make a try?
You can comment these 2 lines in function ixgbe_watchdog_link_is_up of PF kernel driver. Hopefully it'll resolve your problem.

	if (adapter->num_vfs && hw->mac.ops.enable_mdd)
		hw->mac.ops.enable_mdd(hw);
Quoted 98 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Lu, Wenzhuo
Sent: Monday, November 9, 2015 10:10 AM
To: Zhongliang Shu <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

Hi Zhongliang,
You use the PF kernel driver 4.2.0, right?
I’m surprised. Because the newest ixgbe kernel driver I see is 4.1.5. And it doesn’t support 15a8 officially.

From: Zhongliang Shu [mailto:[email protected]]
Sent: Saturday, November 7, 2015 2:03 PM
To: Lu, Wenzhuo; [email protected]
Subject: Re: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

Hi, Wenzhuo:

The Dev ID is 15a8 (device_id = 5544, vendor_id = 32902) About SR-IOV between this NIC and DPDK2.1?

Or when DPDK will support SR-IOV for this NIC?

Thanks.

On Tuesday, November 3, 2015 6:13 PM, "Lu, Wenzhuo" <[email protected]<mailto:[email protected]>> wrote:

Hi Zhongliang,

Quoted 23 lines

-----Original Message-----
From: dev [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Zhongliang Shu
Sent: Wednesday, November 4, 2015 7:07 AM
To: [email protected]<mailto:[email protected]>
Subject: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

Hi, Guys:
I have developed a VM to use SRIOV VF of DPDK2.1 libraryand its PF NIC is interl X552 NIC. The VM is deployed on KVM on Linux box. NIC Inforoot@localhost<mailto:Inforoot@localhost>:~# modinfo ixgbe
filename: /lib/modules/3.14.49-rt46-
WR7.0.0.5_ovp/kernel/drivers/juniper/x552-nic/ixgbe.ko

version:        4.2.0.4.1-unreleased
license:        GPL
description:    Intel(R) 10 Gigabit PCI Express Network Driver Linux Box

InfoLinux localhost 3.14.49-rt46-WR7.0.0.5_ovp #1 SMP PREEMPT RT Mon Oct
26 12:24:18 PDT 2015 x86_64 GNU/Linux When the VM start, and its correct corresponding MAC is pushed into PF.
4: sxe0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master eth1br state UP mode DEFAULT group default qlen 1000

Quoted 6 lines
    link/ether 88:a2:5e:09:bd:c1 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
    vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
    vf 2 MAC 52:54:00:ba:fa:f7, spoof checking on, link-state auto
    vf 3 MAC 52:54:00:ee:e6:0d, spoof checking on, link-state auto

Linux Host dmesg:root@localhost<mailto:root@localhost>:/lib# dmesg

[62995.451770] pci-stub 0000:03:10.4:
Quoted 11 lines

claimed by stub [62995.465783] ixgbe 0000:03:00.0: setting MAC 52:54:00:ba:fa:f7 on VF 2 [62995.465785] ixgbe 0000:03:00.0: Reload the VF driver to make this change effective.

[62995.520671] device vnet4 entered promiscuous mode [62995.520900]

eth0br: port 4(vnet4) entered forwarding state [62995.520911] eth0br:
port
4(vnet4) entered forwarding state [62995.666671] pci-stub 0000:03:10.4:
enabling device (0000 -> 0002) [62998.148072] pci-stub 0000:03:10.4:
kvm assign device [63010.548139] eth0br: port 4(vnet4) entered forwarding state [63050.387806] pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X [63050.399811] pci-stub 0000:03:10.4: irq 97 for MSI/MSI-X

Quoted 2 lines
[63289.573419] ixgbe 0000:03:00.0

sxe0: VF Reset msg received from vf 2 [63290.033229] ixgbe 0000:03:00.0

sxe0:

Quoted 2 lines

VF Reset msg received from vf 2 [63953.063867] ixgbe 0000:03:00.0:
Malicious event on VF 2 tx:100000 rx:0 Several questions about the log

msgs

Quoted 1 line

1): its keep to see the log msgs: [63289.573419] ixgbe 0000:03:00.0 sxe0:

VF

Quoted 11 lines

Reset msg received from vf 2

     [63290.033229] ixgbe 0000:03:00.0 sxe0: VF Reset msg received from vf
2    what reason cause these msg?
2): When try ping from the VM,   it fails and there has msg:
      [63953.063867] ixgbe 0000:03:00.0: Malicious event on VF 2

tx:100000
rx:0
what reason causes this msg?
3): Does DPDK2.1 VF and X552 PF is tested and supported? By the way, the SRIOV of this VM work fine for X550 NIC and 82580 NIC, Thanks.

I'm afraid x552 is not supported yet. Would you like to give me the device id to confirm that?