From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CD936A2EFC for ; Fri, 20 Sep 2019 08:48:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B611A1F2E3; Fri, 20 Sep 2019 08:48:20 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 58C111F2D4 for ; Fri, 20 Sep 2019 08:48:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 23:48:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,527,1559545200"; d="scan'208";a="217560820" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 19 Sep 2019 23:48:17 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:48:17 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:48:16 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.146]) with mapi id 14.03.0439.000; Fri, 20 Sep 2019 14:48:15 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] test_plans: change some test parameters Thread-Index: AQHVbeo/j3UIh3S020KMgE7UCJLgrKc0IudQ Date: Fri, 20 Sep 2019 06:48:14 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB24DE1@SHSMSX101.ccr.corp.intel.com> References: <1568788338-18188-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1568788338-18188-1-git-send-email-yuan.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDdjMzI2OWUtYTc5YS00MzU5LWI2NWUtYTA2ZmMyYzUzZDQyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidG1qXC9GRGxjckFlaXh2RXdwSEx3NldYOGRDblBhRE5wWHpnRlwvQnBGUU5WeFJIWWJuK0xcL1kxYzBONXN3ejdjMSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] test_plans: change some test parameters X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Wednesday, September 18, 2019 2:32 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] test_plans: change some test parameters >=20 > From: pengyuan >=20 > Change some test parameters for vf_pf_reset_test_plan.rst >=20 > Signed-off-by: pengyuan >=20 > diff --git a/test_plans/vf_pf_reset_test_plan.rst > b/test_plans/vf_pf_reset_test_plan.rst > index 7d526c8..51a3e3d 100644 > --- a/test_plans/vf_pf_reset_test_plan.rst > +++ b/test_plans/vf_pf_reset_test_plan.rst > @@ -1,4 +1,4 @@ > -.. Copyright (c) <2015-2017>, Intel Corporation > +.. Copyright (c) <2015-2019>, Intel Corporation > All rights reserved. >=20 > Redistribution and use in source and binary forms, with or without @@= - > 34,6 +34,7 @@ VF PF Reset Tests =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 > + The scenario is kernel PF + DPDK VF >=20 > Prerequisites > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @@ -51,13 +52,18 @@ Prerequisites > testpmd> port reset (port_id|all) > "Reset all ports or port_id" >=20 > +3. Enable pf private flags:: > + > + ethtool --set-priv-flags ens5f0 link-down-on-close on > + ethtool --set-priv-flags ens5f1 link-down-on-close on > + >=20 > Test Case 1: vf reset -- create two vfs on one pf > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -1. Got the pci device id of DUT, for example:: > +1. Get the pci device id of DUT, for example:: >=20 > - ./dpdk_nic_bind.py --st > + ./usertools/dpdk-devbind.py -s >=20 > 0000:81:00.0 'Ethernet Controller X710 for 10GbE SFP+' if=3Dens5f0 = drv=3Di40e > 0000:81:00.1 'Ethernet Controller X710 for 10GbE SFP+' if=3Dens5f1 = drv=3Di40e > @@ -65,7 +71,7 @@ Test Case 1: vf reset -- create two vfs on one pf 2. > Create 2 VFs from 1 PF,and set the VF MAC address at PF0:: >=20 > echo 2 > /sys/bus/pci/devices/0000\:81\:00.0/sriov_numvfs > - ./dpdk_nic_bind.py --st > + ./usertools/dpdk-devbind.py -s >=20 > 0000:81:00.0 'Ethernet Controller X710 for 10GbE SFP+' if=3Dens5f0 = drv=3Di40e > 0000:81:02.0 'XL710/X710 Virtual Function' unused=3D @@ -75,7 +81,7= @@ > Test Case 1: vf reset -- create two vfs on one pf >=20 > 3. Bind the VFs to dpdk driver:: >=20 > - ./tools/dpdk-devbind.py -b vfio-pci 81:02.0 81:02.1 > + ./usertools/dpdk-devbind.py -b vfio-pci 81:02.0 81:02.1 >=20 > 4. Set the VLAN id of VF1 and VF2:: >=20 > @@ -85,7 +91,7 @@ Test Case 1: vf reset -- create two vfs on one pf 5. R= un > testpmd:: >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ > - --portmask=3D0x3 --tx-offloads=3D0x8fff --crc-strip > + --portmask=3D0x3 > testpmd> set fwd mac > testpmd> start > testpmd> set allmulti all on > @@ -95,7 +101,7 @@ Test Case 1: vf reset -- create two vfs on one pf > Promiscuous mode: disabled > Allmulticast mode: enabled >=20 > - the status are not different from the default value. > + The status are not different from the default value. >=20 > 6. Get mac address of one VF and use it as dest mac, using scapy to > send 1000 random packets from tester, verify the packets can be recei= ved > @@ -105,21 +111,19 @@ Test Case 1: vf reset -- create two vfs on one pf > >>>sendp([Ether(dst=3D"00:11:22:33:44:11")/Dot1Q(vlan=3D1)/IP()/Raw= ('x'*40) > ], \ > iface=3D"ens3f0",count=3D1000) >=20 > -7. Reset pf:: > - > - ifconfig ens5f0 promisc > +7. Set pf down:: >=20 > - or:: > + ifconfig ens5f0 down >=20 > - ifconfig ens5f0 -promisc > + Send the same 1000 packets with scapy from tester, > + the vf cannot receive any packets, including vlan=3D0 and vlan=3D1 >=20 > -8. Vf receive a pf reset message:: > +8. Set pf up:: >=20 > - Event type: RESET interrupt on port 0 > - Event type: RESET interrupt on port 1 > + ifconfig ens5f0 up >=20 > - if don't reset the vf, send the same 1000 packets with scapy from tes= ter, > - the vf cannot receive any packets, including vlan=3D0 and vlan=3D1 > + Send the same 1000 packets with scapy from tester, verify the packets= can > be > + received by one VF and can be forward to another VF correctly. >=20 > 9. Reset the vfs, run the command:: >=20 > @@ -128,8 +132,8 @@ Test Case 1: vf reset -- create two vfs on one pf > testpmd> port reset 1 > testpmd> start >=20 > - or just run the command "port reset all" > - send the same 1000 packets with scapy from tester, verify the packets= can > be > + or just run the command "port reset all". > + Send the same 1000 packets with scapy from tester, verify the > + packets can be > received by one VF and can be forward to another VF correctly, > check the port info:: >=20 > @@ -145,7 +149,8 @@ Test Case 1: vf reset -- create two vfs on one pf > Promiscuous mode: disabled > Allmulticast mode: enabled >=20 > - the info status is consistent to the status before reset. > + The info status is consistent to the status before reset. > + >=20 > Test Case 2: vf reset -- create two vfs on one pf, run testpmd separatel= y > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D > @@ -156,11 +161,11 @@ Test Case 2: vf reset -- create two vfs on one pf, > run testpmd separately >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 \ > --socket-mem 1024,1024 -w 81:02.0 --file-prefix=3Dtest1 \ > - -- -i --crc-strip --eth-peer=3D0,00:11:22:33:44:12 \ > + -- -i --eth-peer=3D0,00:11:22:33:44:12 \ >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf0 -n 4 \ > --socket-mem 1024,1024 -w 81:02.1 --file-prefix=3Dtest2 \ > - -- -i --crc-strip > + -- -i >=20 > 3. Set fwd mode on vf0:: >=20 > @@ -180,7 +185,7 @@ Test Case 2: vf reset -- create two vfs on one pf, ru= n > testpmd separately > vf0 can forward the packets to vf1. >=20 > 6. Reset pf, don't reset vf0 and vf1, send the packets, > - vf0 and vf1 cannot receive any packets. > + vf0 can forward the packet to vf1. >=20 > 7. Reset vf0 and vf1, send the packets, > vf0 can forward the packet to vf1. > @@ -203,7 +208,7 @@ Test Case 3: vf reset -- create one vf on each pf 3. > Start one testpmd on two vf ports:: >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ > - --portmask=3D0x3 --tx-offloads=3D0x8fff --crc-strip > + --portmask=3D0x3 >=20 > 4. Start forwarding:: >=20 > @@ -218,7 +223,7 @@ Test Case 3: vf reset -- create one vf on each pf > vfs can fwd the packets normally. >=20 > 6. Reset pf0 and pf1, don't reset vf0 and vf1, send the packets, > - vfs cannot receive any packets. > + vfs can fwd the packets normally. >=20 > 7. Reset vf0 and vf1, send the packets, > vfs can fwd the packets normally. > @@ -230,7 +235,7 @@ Test Case 4: vlan rx restore -- vf reset all ports 1= . > Execute the step1-step3 of test case 1, then start the testpmd:: >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ > - --portmask=3D0x3 --tx-offloads=3D0x8fff --crc-strip > + --portmask=3D0x3 > testpmd> set fwd mac >=20 > 2. Add vlan on both ports:: > @@ -239,7 +244,7 @@ Test Case 4: vlan rx restore -- vf reset all ports > testpmd> rx_vlan add 1 1 > testpmd> start >=20 > - send packets with scapy from tester:: > + Send packets with scapy from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/IP()/Raw('x'*1000)], \ > iface=3D"ens3f0",count=3D1000) > @@ -251,7 +256,7 @@ Test Case 4: vlan rx restore -- vf reset all ports > iface=3D"ens3f0",count=3D1000) >=20 > vfs can receive the packets and forward it. > - send packets with scapy from tester:: > + Send packets with scapy from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/Dot1Q(vlan=3D2)/IP()/Raw('x= '*1000)], > \ > iface=3D"ens3f0",count=3D1000) > @@ -259,7 +264,7 @@ Test Case 4: vlan rx restore -- vf reset all ports > vf0 cannot receive any packets. >=20 > 3. Reset pf, don't reset vf, send the packets in step2 from tester, > - the vfs cannot receive any packets. > + vfs can receive the packets and forward it. >=20 > 4. Reset both vfs:: >=20 > @@ -267,9 +272,9 @@ Test Case 4: vlan rx restore -- vf reset all ports > testpmd> port reset all > testpmd> start >=20 > - send the packets in step2 from tester > + Send the packets in step2 from tester, > vfs can receive the packets and forward it. > - send packets with scapy from tester:: > + Send packets with scapy from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/Dot1Q(vlan=3D2)/IP()/Raw('x= '*1000)], > \ > iface=3D"ens3f0",count=3D1000) > @@ -283,7 +288,7 @@ test Case 5: vlan rx restore -- vf reset one port 1. > Execute the step1-step3 of test case 1, then start the testpmd:: >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ > - --portmask=3D0x3 --tx-offloads=3D0x8fff --crc-strip > + --portmask=3D0x3 > testpmd> set fwd mac >=20 > 2. Add vlan on both ports:: > @@ -292,7 +297,7 @@ test Case 5: vlan rx restore -- vf reset one port > testpmd> rx_vlan add 1 1 > testpmd> start >=20 > - send packets with scapy from tester:: > + Send packets with scapy from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/IP()/Raw('x'*1000)], \ > iface=3D"ens3f0",count=3D1000) > @@ -315,15 +320,15 @@ test Case 5: vlan rx restore -- vf reset one port > sendp([Ether(dst=3D"00:11:22:33:44:11")/Dot1Q(vlan=3D1)/IP()/Raw('x= '*1000)], > \ > iface=3D"ens3f0",count=3D1000) >=20 > - vf0 can receive the packets, but vf1 can't transmit the packets. > - send packets from tester:: > + vfs can receive and forward the packets. > + Send packets from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:12")/IP()/Raw('x'*1000)], \ > iface=3D"ens3f0",count=3D1000) > sendp([Ether(dst=3D"00:11:22:33:44:12")/Dot1Q(vlan=3D1)/IP()/Raw('x= '*1000)], > \ > iface=3D"ens3f0",count=3D1000) >=20 > - vf1 cannot receive the packets. > + vfs can receive and forward the packets. >=20 > 4. Reset vf1:: >=20 > @@ -365,13 +370,13 @@ Test Case 6: vlan rx restore -- create one vf on ea= ch > pf > iface=3D"ens3f0",count=3D1000) >=20 > vfs can forward the packets normally. > - send packets with scapy from tester:: > + Send packets with scapy from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/Dot1Q(vlan=3D2)/IP()/Raw('x= '*1000)], > \ > iface=3D"ens3f0",count=3D1000) >=20 > vf0 cannot receive any packets. > - remove vlan 0 on vf1:: > + Remove vlan 0 on vf1:: >=20 > testpmd> rx_vlan rm 0 1 > sendp([Ether(dst=3D"00:11:22:33:44:11")/IP()/Raw('x'*1000)], \ @@ -= 383,10 > +388,14 @@ Test Case 6: vlan rx restore -- create one vf on each pf >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/IP()/Raw('x'*1000)], \ > iface=3D"ens3f0",count=3D1000) > + > + vf0 can receive the packets, but vf1 can't transmit the packets. > + Send packets from tester:: > + > sendp([Ether(dst=3D"00:11:22:33:44:11")/Dot1Q(vlan=3D1)/IP()/Raw('x= '*1000)], > \ > iface=3D"ens3f0",count=3D1000) >=20 > - the vfs cannot receive any packets. > + vfs can forward the packets normally. >=20 > 4. Reset both vfs, send packets from tester:: >=20 > @@ -397,7 +406,7 @@ Test Case 6: vlan rx restore -- create one vf on each > pf > iface=3D"ens3f0",count=3D1000) >=20 > vf0 can receive the packets, but vf1 can't transmit the packets. > - send packets from tester:: > + Send packets from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/Dot1Q(vlan=3D1)/IP()/Raw('x= '*1000)], > \ > iface=3D"ens3f0",count=3D1000) > @@ -413,9 +422,9 @@ Test Case 7: vlan tx restore 2. Run testpmd:: >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 -- -i \ > - --portmask=3D0x3 --tx-offloads=3D0x8fff --crc-strip > + --portmask=3D0x3 >=20 > -2. Add tx vlan offload on VF1 port, take care the first param is port, > +3. Add tx vlan offload on VF1 port, take care the first param is port, > start forwarding:: >=20 > testpmd> set fwd mac > @@ -426,18 +435,18 @@ Test Case 7: vlan tx restore > testpmd> tx_vlan set 1 51 > testpmd> start >=20 > -3. Send packets with scapy from tester:: > +4. Send packets with scapy from tester:: >=20 > sendp([Ether(dst=3D"00:11:22:33:44:11")/IP()/Raw('x'*18)], \ > iface=3D"ens3f0",count=3D1) >=20 > -4. Listening the port ens3f0:: > +5. Listening the port ens3f0:: >=20 > tcpdump -i ens3f0 -n -e -x -v >=20 > check the packet received, the packet is configured with vlan 51 >=20 > -5. Reset the pf, then reset the two vfs, > +6. Reset the pf, then reset the two vfs, > send the same packet with no vlan tag, > check packets received by tester, the packet is configured with vlan = 51. >=20 > @@ -457,7 +466,7 @@ test Case 8: MAC address restore 3. Start testpmd on > two vf ports:: >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 \ > - -- -i --portmask=3D0x3 --tx-offloads=3D0x8fff --crc-strip > + -- -i --portmask=3D0x3 >=20 > 4. Add MAC address to the vf0 ports:: >=20 > @@ -466,6 +475,7 @@ test Case 8: MAC address restore >=20 > 5. Start forwarding:: >=20 > + testpmd> set promisc all off > testpmd> set fwd mac > testpmd> start >=20 > @@ -479,7 +489,7 @@ test Case 8: MAC address restore > vfs can forward both of the two type packets. >=20 > 7. Reset pf0 and pf1, don't reset vf0 and vf1, send the two packets, > - vf0 and vf1 cannot receive any packets. > + vfs can forward both of the two type packets. >=20 > 8. Reset vf0 and vf1, send the two packets, > vfs can forward both of the two type packets. > @@ -491,7 +501,7 @@ test Case 9: vf reset (two vfs passed through to one > VM) 1. Create 2 VFs from 1 PF,and set the VF MAC address at PF0:: >=20 > echo 2 > /sys/bus/pci/devices/0000\:81\:00.0/sriov_numvfs > - ./dpdk_nic_bind.py --st > + ./usertools/dpdk-devbind.py -s >=20 > 0000:81:00.0 'Ethernet Controller X710 for 10GbE SFP+' if=3Dens5f0 = drv=3Di40e > 0000:81:02.0 'XL710/X710 Virtual Function' unused=3D @@ -500,14 +51= 0,14 > @@ test Case 9: vf reset (two vfs passed through to one VM) 2. Detach VF= s > from the host, bind them to pci-stub driver:: >=20 > modprobe pci-stub > - ./tools/dpdk_nic_bind.py --bind=3Dpci_stub 81:02.0 81:02.1 > + ./usertools/dpdk-devbind.py -b pci_stub 81:02.0 81:02.1 >=20 > or using the following way:: >=20 > virsh nodedev-detach pci_0000_81_02_0; > virsh nodedev-detach pci_0000_81_02_1; >=20 > - ./dpdk_nic_bind.py --st > + ./usertools/dpdk-devbind.py -s >=20 > 0000:81:00.0 'Ethernet Controller X710 for 10GbE SFP+' if=3Dens5f0 = drv=3Di40e > 0000:81:02.0 'XL710/X710 Virtual Function' if=3D drv=3Dpci-stub unu= sed=3D @@ > -525,9 +535,9 @@ test Case 9: vf reset (two vfs passed through to one VM)= 4. > Login vm0, got VFs pci device id in vm0, assume they are 00:05.0 & 00:05.= 1, > bind them to igb_uio driver,and then start testpmd:: >=20 > - ./tools/dpdk_nic_bind.py --bind=3Digb_uio 00:05.0 00:05.1 > + ./usertools/dpdk-devbind.py -b igb_uio 00:05.0 00:05.1 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f -n 4 \ > - -w 00:05.0 -w 00:05.1 -- -i --portmask=3D0x3 --tx-offloads=3D0x8fff > + -w 00:05.0 -w 00:05.1 -- -i --portmask=3D0x3 >=20 > 5. Add MAC address to the vf0 ports, set it in mac forward mode:: >=20 > @@ -546,7 +556,7 @@ test Case 9: vf reset (two vfs passed through to one > VM) > vfs can forward both of the two type packets. >=20 > 7. Reset pf0 and pf1, don't reset vf0 and vf1, send the two packets, > - vf0 and vf1 cannot receive any packets. > + vfs can forward both of the two type packets. >=20 > 8. Reset vf0 and vf1, send the two packets, > vfs can forward both of the two type packets. > @@ -558,7 +568,7 @@ test Case 10: vf reset (two vfs passed through to two > VM) 1. Create 2 VFs from 1 PF,and set the VF MAC address at PF:: >=20 > echo 2 > /sys/bus/pci/devices/0000\:81\:00.0/sriov_numvfs > - ./dpdk_nic_bind.py --st > + ./usertools/dpdk-devbind.py -s >=20 > 0000:81:00.0 'Ethernet Controller X710 for 10GbE SFP+' if=3Dens5f0 = drv=3Di40e > 0000:81:02.0 'XL710/X710 Virtual Function' unused=3D @@ -601,14 +61= 1,14 > @@ test Case 10: vf reset (two vfs passed through to two VM) >=20 > ./tools/dpdk_nic_bind.py --bind=3Digb_uio 00:05.0 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 \ > - -- -i --crc-strip --eth-peer=3D0,vf1port_macaddr \ > + -- -i --eth-peer=3D0,vf1port_macaddr \ >=20 > login vm1, got VF1 pci device id in vm1, assume it's 00:06.0, > bind the port to igb_uio, then start testpmd on vf1 port:: >=20 > ./tools/dpdk_nic_bind.py --bind=3Digb_uio 00:06.0 > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf0 -n 4 \ > - -- -i --crc-strip > + -- -i >=20 > 5. Add vlan on vf0 in vm0, and set fwd mode:: >=20 > @@ -632,7 +642,7 @@ test Case 10: vf reset (two vfs passed through to two > VM) > vf0 can forward the packets to vf1. >=20 > 7. Reset pf, don't reset vf0 and vf1, send the two packets, > - vf0 and vf1 cannot receive any packets. > + vf0 can forward both of the two type packets to VF1. >=20 > 8. Reset vf0 and vf1, send the two packets, > vf0 can forward both of the two type packets to VF1. > -- > 2.14.3