From patchwork Wed Feb 24 02:25:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng, Yuan" X-Patchwork-Id: 88131 Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id 896C2A034F; Wed, 24 Feb 2021 10:26:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5BCDC40FDF; Wed, 24 Feb 2021 10:26:20 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 191844069B for ; Wed, 24 Feb 2021 10:26:18 +0100 (CET) IronPort-SDR: sSkU/XzBdtV4Lc57fy5ByUWJ+BkFlSkKJQZnI52pL5ayUB219AuBst2EgKLRFHK+VnPsRmpJrw dlR+XzWWStVw== X-IronPort-AV: E=McAfee;i="6000,8403,9904"; a="249159660" X-IronPort-AV: E=Sophos;i="5.81,202,1610438400"; d="scan'208";a="249159660" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2021 01:26:17 -0800 IronPort-SDR: DsW4SSWTuf5oVybITBEfsVncIe72czbf9iqZf8C5YZTeIV5w8Jsn9FejkxHfwWRx2MSEDnXyxU AK0nwSQIsApA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,202,1610438400"; d="scan'208";a="403610051" Received: from pengyuan-dpdk.sh.intel.com ([10.67.117.236]) by orsmga008.jf.intel.com with ESMTP; 24 Feb 2021 01:26:16 -0800 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Wed, 24 Feb 2021 02:25:26 +0000 Message-Id: <20210224022526.22745-1-yuan.peng@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1]test_plans: add vlan packet check to the test plan. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" 1.Add vlan packet check when set allmulti on 2.Add vlan filter check when set allmulti off and configured multicast address Signed-off-by: Peng Yuan diff --git a/test_plans/cvl_vf_support_multicast_address_test_plan.rst b/test_plans/cvl_vf_support_multicast_address_test_plan.rst index e986c9ee..24a3c600 100644 --- a/test_plans/cvl_vf_support_multicast_address_test_plan.rst +++ b/test_plans/cvl_vf_support_multicast_address_test_plan.rst @@ -410,21 +410,23 @@ Test Case 6: set allmulti on 2. send multicast and unicast packets:: sendp([Ether(dst="33:33:00:00:00:01")/IP(src="224.0.0.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") + sendp([Ether(dst="33:33:00:00:00:01")/Dot1Q(vlan=1)/IP(src="224.0.0.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") sendp([Ether(dst="33:33:00:40:10:01")/IP(src="224.192.16.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") + sendp([Ether(dst="33:33:00:40:10:01")/Dot1Q(vlan=2)/IP(src="224.192.16.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") sendp([Ether(dst="FE:ED:84:92:64:DD")/IP(src="192.168.0.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") sendp([Ether(dst="5E:8E:8B:4D:89:05")/IP(src="192.168.0.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") sendp([Ether(dst="FE:ED:84:92:64:DE")/IP(src="192.168.0.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") - the pkt1-2 can be received by port 0 and port 1, pkt3 is received by port 0, pkt4 is received by port 1. - pkt5 can't be received by any port. + the pkt1-4 can be received by port 0 and port 1, pkt5 is received by port 0, pkt6 is received by port 1. + pkt7 can't be received by any port. 3. set allmulti off and promisc on:: set promisc all on set allmulti all off -4. send same packets, the pkt1-2 can't be received by port 0 and port 1, - pkt3-5 can be received by both port 0 and port 1. +4. send same packets, the pkt1-4 can't be received by port 0 and port 1, + pkt5-7 can be received by both port 0 and port 1. Test Case 7: negative case ========================== @@ -466,3 +468,54 @@ Test Case 7: negative case mcast_addr remove 0 33:33:00:00:00:40 11.send the packet again, check the packet cannot be received by port 0. + +Test Case 8: set vlan filter on +=============================== +1. send multicast packets with/without vlan ID:: + + sendp([Ether(dst="33:33:00:00:00:01")/IP(src="224.0.0.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") + sendp([Ether(dst="33:33:00:00:00:01")/Dot1Q(vlan=1)/IP(src="224.0.0.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") + sendp([Ether(dst="33:33:00:40:10:01")/IP(src="224.192.16.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") + sendp([Ether(dst="33:33:00:40:10:01")/Dot1Q(vlan=1)/IP(src="224.192.16.1")/UDP(sport=22,dport=23)/("X"*480)],iface="enp134s0f1") + + the pkt1-4 can't be received by any port. + +2. configure multicast address:: + + mcast_addr add 0 33:33:00:00:00:01 + +3. show multicast address of port 0 and port 1:: + + testpmd> show port 0 mcast_macs + Number of Multicast MAC address added: 1 + 33:33:00:00:00:01 + testpmd> show port 1 mcast_macs + Number of Multicast MAC address added: 0 + +4. send same packets, pkt1 can be received by port 0, other packets get same result. + +5. set vlan filter on:: + + vlan set filter on 0 + rx_vlan add 1 0 + + send same packets, pkt1-2 can be received by port 0, other packets can't be received by any port. + +6. remove the vlan filter:: + + rx_vlan rm 1 0 + + send same packets, pkt1 can be received by port 0, other packets can't be received by any port. + +7. remove the multicast address configuration:: + + mcast_addr remove 0 33:33:00:00:00:01 + +8. show multicast address of port 0 and port 1:: + + testpmd> show port 0 mcast_macs + Number of Multicast MAC address added: 0 + testpmd> show port 1 mcast_macs + Number of Multicast MAC address added: 0 + +9. send same packets, the pkt1-4 can't be received by any port.