Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/105157/?format=api
http://patches.dpdk.org/api/patches/105157/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20211216165415.18943-2-yanx.xia@intel.com/", "project": { "id": 3, "url": "http://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20211216165415.18943-2-yanx.xia@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20211216165415.18943-2-yanx.xia@intel.com", "date": "2021-12-16T16:54:15", "name": "[V1,2/2] test_plans/sriov_kvm: delete test cases", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "1da0c7e555941adfbcef885bcd6ac36084387edd", "submitter": { "id": 2034, "url": "http://patches.dpdk.org/api/people/2034/?format=api", "name": "Yan Xia", "email": "yanx.xia@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20211216165415.18943-2-yanx.xia@intel.com/mbox/", "series": [ { "id": 20951, "url": "http://patches.dpdk.org/api/series/20951/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=20951", "date": "2021-12-16T16:54:14", "name": "[V1,1/2] tests/sriov_kvm: delete test cases", "version": 1, "mbox": "http://patches.dpdk.org/series/20951/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/105157/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/105157/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4EF07A00C3;\n\tThu, 16 Dec 2021 09:51:49 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3E7F2410FA;\n\tThu, 16 Dec 2021 09:51:49 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 85B0E40143\n for <dts@dpdk.org>; Thu, 16 Dec 2021 09:51:47 +0100 (CET)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Dec 2021 00:51:46 -0800", "from unknown (HELO dpdk.lan) ([10.240.183.77])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Dec 2021 00:51:41 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1639644707; x=1671180707;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=f+IRfpJUs6fRMYsO0IdqfdJ2wrZqDN5qoECs5eK2g9U=;\n b=m4mYtUyFzsEb8YTlg9DXblTC2WV0GholWeGUOr/py6oVltTwWcV6EIeL\n F9joduVPa8msCPidackNNoMSgH0uanyh0Y7UGXbhxVIHwIXn/JtETe5sW\n X3TwBOxUzjudVnObO43CiHT6fa4/ZSqu4UINBl7T0wjW0r/8RJzBl6inf\n Gam4mjf1+GXieVlOVgawAerFHWPVpaqnwWt1WYj7yp8RcBxFK4zbzgpNZ\n ESRIOhJQUX60qCHvbqeFh9LoGuAJv5zxVzYUKMDtXsnCKIAnw3vDlFwfo\n A8JJiX2yW9FUj/Hc2duNo/vOFmX665hqobdstjwmrfj9WCxLQpOq5KB3L g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10199\"; a=\"238179516\"", "E=Sophos;i=\"5.88,211,1635231600\"; d=\"scan'208\";a=\"238179516\"", "E=Sophos;i=\"5.88,211,1635231600\"; d=\"scan'208\";a=\"519161545\"" ], "From": "Yan Xia <yanx.xia@intel.com>", "To": "dts@dpdk.org", "Cc": "Yan Xia <yanx.xia@intel.com>", "Subject": "[dts][PATCH V1 2/2] test_plans/sriov_kvm: delete test cases", "Date": "Thu, 16 Dec 2021 16:54:15 +0000", "Message-Id": "<20211216165415.18943-2-yanx.xia@intel.com>", "X-Mailer": "git-send-email 2.33.1", "In-Reply-To": "<20211216165415.18943-1-yanx.xia@intel.com>", "References": "<20211216165415.18943-1-yanx.xia@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "delete test cases because dpdk removed related function\ndpdk commit-id: b225783dda ethdev: remove legacy mirroring API\n\nSigned-off-by: Yan Xia <yanx.xia@intel.com>\n---\n test_plans/sriov_kvm_test_plan.rst | 490 -----------------------------\n 1 file changed, 490 deletions(-)", "diff": "diff --git a/test_plans/sriov_kvm_test_plan.rst b/test_plans/sriov_kvm_test_plan.rst\nindex 1b84f780..9b84ac4c 100644\n--- a/test_plans/sriov_kvm_test_plan.rst\n+++ b/test_plans/sriov_kvm_test_plan.rst\n@@ -134,224 +134,6 @@ will be forwarded to VF1 and then send out::\n Send 10 packets with VF0 mac address and make sure the packets will be\n forwarded by VF1.\n \n-Test Case2: Mirror Traffic between 2VMs with Pool up mirroring\n-==============================================================\n-\n-Set up common 2VM prerequisites.\n-\n-Add one mirror rule that will mirror VM0 income traffic to VM1::\n-\n- PF testpmd-> set port 0 mirror-rule 0 pool-mirror-up 0x1 dst-pool 1 on\n-\n-Send 10 packets to VM0 and verify the packets has been mirrored to VM1 and\n-forwarded the packet.\n-\n-After test need reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n-\n-Test Case3: Mirror Traffic between 2VMs with Pool down mirroring(Niantic not support)\n-=====================================================================================\n-\n-Set up common 2VM prerequisites.\n-\n-Add one mirror rule that will mirror VM0 outcome traffic to VM1::\n-\n- PF testpmd-> set port 0 mirror-rule 0 pool-mirror-down 0x1 dst-pool 1 on\n-\n-Make sure VM1 in receive only mode, VM0 send 32 packets, and verify the VM0\n-packets has been mirrored to VM1::\n-\n- VF1 testpmd-> set fwd rxonly\n- VF1 testpmd-> start\n- VF0 testpmd-> start tx_first\n-\n-Note: don't let VF1 fwd packets since downlink mirror will mirror back the\n-packets to received packets, which will be an infinite loop.\n-\n-After test need reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n-\n-Test Case4: Mirror Traffic between 2VMs with Uplink mirroring\n-=============================================================\n-\n-Set up common 2VM prerequisites.\n-\n-Add one mirror rule that will mirror VM0 income traffic to VM1::\n-\n- PF testpmd-> set port 0 mirror-rule 0 uplink-mirror dst-pool 1 on\n-\n-Send 10 packets to VM0 and verify the packets has been mirrored to VM1 and\n-forwarded the packet.\n-\n-After test need reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n-\n-Test Case5: Mirror Traffic between 2VMs with Downlink mirroring\n-===============================================================\n-\n-Run testpmd on VM0 and VM1 and start traffic forward on the VM hosts::\n-\n- VF0 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n- VF1 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n-\n-Add one mirror rule that will mirror VM0 outcome traffic to VM1::\n-\n- PF testpmd-> set port 0 mirror-rule 0 downlink-mirror dst-pool 1 on\n-\n-Make sure VM1 in receive only mode, VM0 send 32 packets, and verify the VM0\n-packets has been mirrored to VM1::\n-\n- VF1 testpmd-> set fwd rxonly\n- VF1 testpmd-> start\n- VF0 testpmd-> start tx_first\n-\n-Note: don't let VF1 fwd packets since downlink mirror will mirror back the\n-packets to received packets, which will be an infinite loop.\n-\n-After test need reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n-\n-Test Case6: Mirror Traffic between 2VMs with Vlan mirroring\n-===========================================================\n-\n-Set up common 2VM prerequisites.\n-\n-Generate a random number N of 1-4095, Add rx vlan-id N on VF0, add one mirror rule\n-that will mirror VM0 income traffic with specified vlan to VM1::\n-\n- PF testpmd-> rx_vlan add N port 0 vf 0x1\n- PF testpmd-> set port 0 mirror-rule 0 vlan-mirror n dst-pool 1 on\n-\n-Send 10 packets with vlan-id N and VM0 MAC to VM0 and verify the packets has been\n-mirrored to VM1 and forwarded the packet.\n-\n-Note: don't let VF1 fwd packets since vlan downlink mirror will mirror back the\n-packets to received packets, which will be an infinite loop.\n-\n-After test need reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n-\n-Test Case7: Mirror Traffic between 2VMs with up link mirroring & down link mirroring\n-====================================================================================\n-\n-Run testpmd on VM0 and VM1 and start traffic forward on the VM hosts::\n-\n- VF0 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n- VF1 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n-\n-When mirroring only between two Vfs, pool up (or down) mirroring and up (or down) link mirroring lead\n-to the same behavior, so we randomly choose one way to mirror in both up and down directions.\n-up link mirroring as below:\n-\n- 1. Pool up mirroring (Case 2)\n- 2. Uplink port mirroring(Case 4)\n-\n-down link mirroring as below:\n-\n- 1. Pool down mirroring(Fortville only, Case 3)\n- 2. Downlink port mirroring(Case 5)\n-\n-And 2 mirror rules, one is randomly selected up link mirroring, one is randomly selected\n-down link mirroring(Niantic use Downlink port mirroring). The 2 mirror rules will mirroring\n-VM0 income and outcome traffic to VM1.\n-\n-Make sure VM1 in receive only mode, Send 10 packets to VF0 with VF0 MAC,verify that all VF0\n-received packets and transmitted packets will mirror to VF1, VF1 will receive 20 packets::\n-\n- VF0 testpmd-> set fwd mac\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd rxonly\n- VF1 testpmd-> start\n-\n-Note: don't let VF1 fwd packets since vlan downlink mirror will mirror back the\n-packets to received packets, which will be an infinite loop.\n-\n-After test need reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n-\n-Test Case8: Mirror Traffic between 2VMs with Vlan & with up link mirroring & down link mirroring\n-================================================================================================\n-\n-Run testpmd on VM0 and VM1 and start traffic forward on the VM hosts::\n-\n- VF0 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n- VF1 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n-\n-When mirroring only between two Vfs, pool up (or down) mirroring and up (or down) link mirroring lead\n-to the same behavior, so we randomly choose one way to mirror in both up and down directions.\n-up link mirroring as below:\n-\n- 1. Pool up mirroring (Case 2)\n- 2. Uplink port mirroring(Case 4)\n-\n-down link mirroring as below:\n-\n- 1. Pool down mirroring(Fortville only, Case 3)\n- 2. Downlink port mirroring(Case 5)\n-\n-And 2 mirror rules, one is randomly selected up link mirroring, one is randomly selected\n-down link mirroring(Niantic use Downlink port mirroring). The 2 mirror rules will mirroring\n-VM0 income and outcome traffic to VM1.\n-\n-Generate a random number N of 1-4095, Add rx vlan-id N and a mirror rule::\n-\n- PF testpmd-> rx_vlan add N port 0 vf 0x2\n- PF testpmd-> set port 0 mirror-rule 2 vlan-mirror N dst-pool 0 on\n-\n-Note: Because of Hardware limitation, downlink-mirror and pool-mirror-down cannot coexist,\n-uplink-mirror and pool-mirror-up cannot coexist in Fortville.\n-\n-Fortville: Make sure VM0 in receive only mode::\n-\n- VF1 testpmd-> set fwd rxonly\n- VF1 testpmd-> start\n- VF0 testpmd-> set fwd mac\n- VF0 testpmd-> start\n-\n-Send 1 packet with VM1 vlan id N and mac, and verify that VF0 have 1 RX packet(vlan mirror),\n-and VF1 have 2 RX packets(RX and down link mirror).\n-\n-Send 1 packet to VF0 with VF0 MAC, check if VF0 RX 1 packet and TX 1 packet,\n-and VF1 has 1 packets mirror from VF0(uplink mirror) at least.\n-\n-Niantic add rules as below::\n-\n- PF testpmd> set port 0 mirror-rule 0 pool-mirror-up 0x1 dst-pool 1 on\n- PF testpmd> rx_vlan add N port 0 vf 0x2\n- PF testpmd> set port 0 mirror-rule 2 vlan-mirror N dst-pool 0 on\n- PF testpmd> set port 0 mirror-rule 1 downlink-mirror dst-pool 1 on\n- PF testpmd> set port 0 mirror-rule 3 uplink-mirror dst-pool 1 on\n-\n-Note: don't let VF0 fwd packets since downlink vlan mirror will mirror back the\n-packets to received packets, which will be an infinite loop.\n-\n-Make sure VM0 in receive only mode, VM0 first send 32 packets, and verify the\n-VM0 packets has been mirrored to VM1, VF1 RX 32 packets (down link mirror)::\n-\n- VF1 testpmd-> set fwd rxonly\n- VF1 testpmd-> start\n- VF0 testpmd-> set fwd rxonly\n- VF0 testpmd-> start tx_first\n-\n-Send 1 packet with VM1 vlan id N and mac, and verify that VF0 have 1 RX packet(vlan mirror).\n-\n-Send 1 packet to VF0 with VF0 MAC, check if VF0 RX 1 packet and TX 1 packet,\n-and VF1 has 2 packets mirror from VF0(up link mirror).\n-\n-After test need reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n- PF testpmd-> reset port 0 mirror-rule 2\n- PF testpmd-> reset port 0 mirror-rule 3\n-\n Test Case9: Add Multi exact MAC address on VF\n =============================================\n \n@@ -477,30 +259,6 @@ VF0 will receive and forward the packet::\n Repeat the off/on twice to check the switch capability, and ensure on/off can\n work stable.\n \n-Test Case16: Negative input to commands\n-=======================================\n-\n-Input invalid commands on PF/VF to make sure the commands can't work::\n-\n- 1. PF testpmd-> set port 0 vf 65 tx on\n- 2. PF testpmd-> set port 2 vf -1 tx off\n- 3. PF testpmd-> set port 0 vf 0 rx oneee\n- 4. PF testpmd-> set port 0 vf 0 rx offdd\n- 5. PF testpmd-> set port 0 vf 0 rx oneee\n- 6. PF testpmd-> set port 0 vf 64 rxmode BAM on\n- 7. PF testpmd-> set port 0 vf 64 rxmode BAM off\n- 8. PF testpmd-> set port 0 uta 00:11:22:33:44 on\n- 9. PF testpmd-> set port 7 uta 00:55:44:33:22:11 off\n- 10. PF testpmd-> set port 0 vf 34 rxmode ROPE on\n- 11. PF testpmd-> mac_addr add port 0 vf 65 00:55:44:33:22:11\n- 12. PF testpmd-> mac_addr add port 5 vf 0 00:55:44:88:22:11\n- 13. PF testpmd-> set port 0 mirror-rule 0 pool-mirror 65 dst-pool 1 on\n- 14. PF testpmd-> set port 0 mirror-rule 0xf uplink-mirror dst-pool 1 on\n- 15. PF testpmd-> set port 0 mirror-rule 2 vlan-mirror 9 dst-pool 1 on\n- 16. PF testpmd-> set port 0 mirror-rule 0 downlink-mirror 0xf dst-pool 2 off\n- 17. PF testpmd-> reset port 0 mirror-rule 4\n- 18. PF testpmd-> reset port 0xff mirror-rule 0\n-\n Prerequisites for Scaling 4VFs per 1PF\n ======================================\n \n@@ -521,254 +279,6 @@ are set up in each case::\n VF2 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n VF3 ./x86_64-default-linuxapp-gcc/app/testpmd -c f -n 4 -- -i\n \n-Test Case17: Scaling Pool Mirror on 4VFs\n-========================================\n-\n-Make sure prerequisites for Scaling 4VFs per 1PF is set up.\n-\n-Add one mirror rules that will mirror VM0/VM1/VM2 income traffic to VM3::\n-\n- PF testpmd-> set port 0 mirror-rule 0 pool-mirror 0x7 dst-pool 3 on\n- VF0 testpmd-> set fwd rxonly\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd rxonly\n- VF1 testpmd-> start\n- VF2 testpmd-> set fwd rxonly\n- VF2 testpmd-> start\n- VF3 testpmd-> set fwd rxonly\n- VF3 testpmd-> start\n-\n-Send 3 flows to VM0/VM1/VM2, one with VM0 mac, one with VM1 mac, one with VM2\n-mac, and verify the packets has been mirrored to VM3.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n-\n-Set another 2 mirror rules. VM0/VM1 income traffic mirror to VM2 and VM3::\n-\n- PF testpmd-> set port 0 mirror-rule 0 pool-mirror 0x3 dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 1 pool-mirror 0x3 dst-pool 3 on\n-\n-Send 2 flows to VM0/VM1, one with VM0 mac, one with VM1 mac and verify the\n-packets has been mirrored to VM2/VM3 and VM2/VM3 have forwarded these packets.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n-\n-Test Case18: Scaling Uplink Mirror on 4VFs\n-==========================================\n-\n-Make sure prerequisites for Scaling 4VFs per 1PF is set up.\n-\n-Add one mirror rules that will mirror all income traffic to VM2 and VM3::\n-\n- PF testpmd-> set port 0 mirror-rule 0 uplink-mirror dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 1 uplink-mirror dst-pool 3 on\n- VF0 testpmd-> set fwd rxonly\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd rxonly\n- VF1 testpmd-> start\n- VF2 testpmd-> set fwd rxonly\n- VF2 testpmd-> start\n- VF3 testpmd-> set fwd rxonly\n- VF3 testpmd-> start\n-\n-Send 4 flows to VM0/VM1/VM2/VM3, one packet with VM0 mac, one packet with VM1\n-mac, one packet with VM2 mac, and one packet with VM3 mac and verify the\n-income packets has been mirrored to VM2 and VM3. Make sure VM2/VM3 will have 4\n-packets.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n-\n-Test Case19: Scaling Downlink Mirror on 4VFs\n-============================================\n-\n-Make sure prerequisites for scaling 4VFs per 1PF is set up.\n-\n-Add one mirror rules that will mirror all outcome traffic to VM2 and VM3::\n-\n- PF testpmd-> set port 0 mirror-rule 0 downlink-mirror dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 1 downlink-mirror dst-pool 3 on\n- VF0 testpmd-> set fwd mac\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd mac\n- VF1 testpmd-> start\n- VF2 testpmd-> set fwd rxonly\n- VF2 testpmd-> start\n- VF3 testpmd-> set fwd rxonly\n- VF3 testpmd-> start\n-\n-Send 2 flows to VM0/VM1, one with VM0 mac, one with VM1 mac, and verify VM0/VM1\n-will forward these packets. And verify the VM0/VM1 outcome packets have been\n-mirrored to VM2 and VM3.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n-\n-Test Case20: Scaling Vlan Mirror on 4VFs\n-========================================\n-\n-Make sure prerequisites for scaling 4VFs per 1PF is set up.\n-\n-Add 3 mirror rules that will mirror VM0/VM1/VM2 vlan income traffic to VM3::\n-\n- PF testpmd-> rx_vlan add 1 port 0 vf 0x1\n- PF testpmd-> rx_vlan add 2 port 0 vf 0x2\n- PF testpmd-> rx_vlan add 3 port 0 vf 0x4\n- PF testpmd-> set port 0 mirror-rule 0 vlan-mirror 1,2,3 dst-pool 3 on\n- VF0 testpmd-> set fwd mac\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd mac\n- VF1 testpmd-> start\n- VF2 testpmd-> set fwd mac\n- VF2 testpmd-> start\n- VF3 testpmd-> set fwd mac\n- VF3 testpmd-> start\n-\n-Send 3 flows to VM0/VM1/VM2, one with VM0 mac/vlanid, one with VM1 mac/vlanid,\n-one with VM2 mac/vlanid,and verify the packets has been mirrored to VM3 and\n-VM3 has forwards these packets.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n-\n-Set another 2 mirror rules. VM0/VM1 income traffic mirror to VM2 and VM3::\n-\n- PF testpmd-> set port 0 mirror-rule 0 vlan-mirror 1 dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 1 vlan-mirror 2 dst-pool 3 on\n-\n-Send 2 flows to VM0/VM1, one with VM0 mac/vlanid, one with VM1 mac/vlanid and\n-verify the packets has been mirrored to VM2 and VM3, then VM2 and VM3 have\n-forwarded these packets.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n-\n-Test Case21: Scaling Vlan Mirror & Pool Mirror on 4VFs\n-======================================================\n-\n-Make sure prerequisites for scaling 4VFs per 1PF is set up.\n-\n-Add 3 mirror rules that will mirror VM0/VM1 vlan income traffic to VM2, VM0/VM1\n-pool will come to VM3::\n-\n- PF testpmd-> rx_vlan add 1 port 0 vf 0x1\n- PF testpmd-> rx_vlan add 2 port 0 vf 0x2\n- PF testpmd-> set port 0 mirror-rule 0 vlan-mirror 1 dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 1 vlan-mirror 2 dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 2 pool-mirror 0x3 dst-pool 3 on\n- VF0 testpmd-> set fwd mac\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd mac\n- VF1 testpmd-> start\n- VF2 testpmd-> set fwd mac\n- VF2 testpmd-> start\n- VF3 testpmd-> set fwd mac\n- VF3 testpmd-> start\n-\n-Send 2 flows to VM0/VM1, one with VM0 mac/vlanid, one with VM1 mac/vlanid, and\n-verify the packets has been mirrored to VM2 and VM3, and VM2/VM3 have\n-forwarded these packets.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n- PF testpmd-> reset port 0 mirror-rule 2\n-\n-Set 3 mirror rules. VM0/VM1 income traffic mirror to VM2, VM2 traffic will\n-mirror to VM3::\n-\n- PF testpmd-> set port 0 mirror-rule 0 vlan-mirror 1,2 dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 2 pool-mirror 0x2 dst-pool 3 on\n-\n-Send 2 flows to VM0/VM1, one with VM0 mac/vlanid, one with VM1 mac/vlanid and\n-verify the packets has been mirrored to VM2, VM2 traffic will be mirrored to\n-VM3, then VM2 and VM3 have forwarded these packets.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n- PF testpmd-> reset port 0 mirror-rule 2\n-\n-Test Case22: Scaling Uplink Mirror & Downlink Mirror on 4VFs\n-============================================================\n-\n-Make sure prerequisites for scaling 4VFs per 1PF is set up.\n-\n-Add 2 mirror rules that will mirror all income traffic to VM2, all outcome\n-traffic to VM3. Make sure VM2 and VM3 rxonly::\n-\n- PF testpmd-> set port 0 mirror-rule 0 uplink-mirror dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 1 downlink-mirror dst-pool 3 on\n- VF0 testpmd-> set fwd mac\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd mac\n- VF1 testpmd-> start\n- VF2 testpmd-> set fwd rxonly\n- VF2 testpmd-> start\n- VF3 testpmd-> set fwd rxonly\n- VF3 testpmd-> start\n-\n-Send 2 flows to VM0/VM1, one with VM0 mac, one with VM1 mac and make sure\n-VM0/VM1 will forward packets. Verify the income packets have been mirrored to\n-VM2, the outcome packets has been mirrored to VM3.\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n-\n-Test Case23: Scaling Pool & Vlan & Uplink & Downlink Mirror on 4VFs\n-===================================================================\n-\n-Make sure prerequisites for scaling 4VFs per 1PF is set up.\n-\n-Add mirror rules that VM0 vlan mirror to VM1, all income traffic mirror to VM2,\n-all outcome traffic mirror to VM3, all VM1 traffic will mirror to VM0. Make\n-sure VM2 and VM3 rxonly::\n-\n- PF testpmd-> rx_vlan add 1 port 0 vf 0x1\n- PF testpmd-> set port 0 mirror-rule 0 vlan-mirror 1 dst-pool 1 on\n- PF testpmd-> set port 0 mirror-rule 1 pool-mirror 0x2 dst-pool 0 on\n- PF testpmd-> set port 0 mirror-rule 2 uplink-mirror dst-pool 2 on\n- PF testpmd-> set port 0 mirror-rule 3 downlink-mirror dst-pool 3 on\n- VF0 testpmd-> set fwd mac\n- VF0 testpmd-> start\n- VF1 testpmd-> set fwd mac\n- VF1 testpmd-> start\n- VF2 testpmd-> set fwd rxonly\n- VF2 testpmd-> start\n- VF3 testpmd-> set fwd rxonly\n- VF3 testpmd-> start\n-\n-Send 10 packets to VM0 with VM0 mac/vlanid, verify that VM1 will be mirrored\n-and packets will be forwarded, VM2 will have all income traffic mirrored, VM3\n-will have all outcome traffic mirrored\n-\n-Send 10 packets to VM1 with VM1 mac, verify that VM0 will be mirrored and\n-packets will be forwarded, VM2 will have all income traffic mirrored; VM3 will\n-have all outcome traffic mirrored\n-\n-Reset mirror rule::\n-\n- PF testpmd-> reset port 0 mirror-rule 0\n- PF testpmd-> reset port 0 mirror-rule 1\n- PF testpmd-> reset port 0 mirror-rule 2\n- PF testpmd-> reset port 0 mirror-rule 3\n-\n Test Case24: Scaling InterVM communication on 4VFs\n ==================================================\n \n", "prefixes": [ "V1", "2/2" ] }{ "id": 105157, "url": "