From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhongliang Shu Subject: DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works? Date: Tue, 3 Nov 2015 23:06:40 +0000 (UTC) Message-ID: <1986782785.1874136.1446592000552.JavaMail.yahoo@mail.yahoo.com> References: <1986782785.1874136.1446592000552.JavaMail.yahoo@mail.yahoo.com> Reply-To: Zhongliang Shu Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable To: "dev@dpdk.org" Return-path: Received: from nm20.bullet.mail.bf1.yahoo.com (nm20.bullet.mail.bf1.yahoo.com [98.139.212.179]) by dpdk.org (Postfix) with ESMTP id 89A6B8DA1 for ; Wed, 4 Nov 2015 00:06:42 +0100 (CET) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, Guys: I have developed a VM to use SRIOV VF of DPDK2.1 libraryand its PF NIC is i= nterl X552 NIC. The VM is deployed on KVM on Linux box. NIC Inforoot@localhost:~# modinfo ixgbe filename:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /lib/modules/3.14.49-rt46-WR7= .0.0.5_ovp/kernel/drivers/juniper/x552-nic/ixgbe.ko version:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4.2.0.4.1-unreleased license:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPL description:=C2=A0=C2=A0=C2=A0 Intel(R) 10 Gigabit PCI Express Network Driv= er 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: mtu 1500 qdisc = mq master eth1br state UP mode DEFAULT group default qlen 1000 =C2=A0=C2=A0=C2=A0 link/ether 88:a2:5e:09:bd:c1 brd ff:ff:ff:ff:ff:ff =C2=A0=C2=A0=C2=A0 vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-stat= e auto =C2=A0=C2=A0=C2=A0 vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-stat= e auto =C2=A0=C2=A0=C2=A0 vf 2 MAC 52:54:00:ba:fa:f7, spoof checking on, link-stat= e auto =C2=A0=C2=A0=C2=A0 vf 3 MAC 52:54:00:ee:e6:0d, spoof checking on, link-stat= e 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:=C2=A0=C2=A0=C2=A0=C2=A0 [63289.573419] ix= gbe 0000:03:00.0 sxe0: VF Reset msg received from vf 2 =C2=A0=C2=A0=C2=A0=C2=A0 [63290.033229] ixgbe 0000:03:00.0 sxe0: VF Reset m= sg received from vf 2=C2=A0=C2=A0=C2=A0 what reason cause these msg? 2): When try ping from the VM,=C2=A0=C2=A0 it fails and there has msg: =C2=A0=C2=A0 =C2=A0=C2=A0 [63953.063867] ixgbe 0000:03:00.0: Malicious even= t on VF 2 tx:100000 rx:0=20 =C2=A0=C2=A0=C2=A0 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=C2=A0 82580 NIC= , Thanks.