From patchwork Wed Sep 15 08:50:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Tu, Lijuan" X-Patchwork-Id: 98872 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 90456A0C43; Wed, 15 Sep 2021 03:02:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F75C4014F; Wed, 15 Sep 2021 03:02:32 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 2E9B74003C for ; Wed, 15 Sep 2021 03:02:29 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="285866319" X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="285866319" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 18:02:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="583055758" Received: from unknown (HELO dpdk-lijuan.sh.intel.com) ([10.67.119.192]) by orsmga004.jf.intel.com with ESMTP; 14 Sep 2021 18:02:27 -0700 From: Lijuan Tu To: xueqin.lin@intel.com Cc: dts@dpdk.org, Lijuan Tu Date: Wed, 15 Sep 2021 16:50:35 +0800 Message-Id: <1631695835-37779-1-git-send-email-lijuan.tu@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] test_plans/kernelpf_iavf: complete mac filter case 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" the test case for mac filter missed some example for packets. so fill them out and users could easily understand. Signed-off-by: Lijuan Tu Acked-by: Xueqin Lin --- test_plans/kernelpf_iavf_test_plan.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst index 2b5a785..4351f79 100644 --- a/test_plans/kernelpf_iavf_test_plan.rst +++ b/test_plans/kernelpf_iavf_test_plan.rst @@ -95,7 +95,9 @@ Disable promisc mode, add a new MAC to VF0 and then start testpmd:: testpmd> start Use scapy to send 100 random packets with current VF0's MAC, verify the -packets can be received and forwarded by the VF +packets can be received and forwarded by the VF:: + + p=Ether(dst="00:01:23:45:67:89")/IP()/Raw(load='X'*30) Use scapy to send 100 random packets with new added VF0's MAC, verify the packets can be received and forwarded by the VF:: @@ -112,6 +114,8 @@ Remove the MAC 00:11:22:33:44:55:: Use scapy to send 100 random packets with removed VF0's MAC, verify the packets can't be received and forwarded by the VF:: + p=Ether(dst="00:11:22:33:44:55")/IP()/Raw(load='X'*30) + Set the default mac address to other mac, check the mac address has be changed to new set mac:: @@ -119,10 +123,14 @@ to new set mac:: testpmd> show port info 0 Use scapy to send 100 random packets with original VF0's MAC, verify the -packets can't be received and forwarded by the VF +packets can't be received and forwarded by the VF:: + + p=Ether(dst="00:01:23:45:67:89")/IP()/Raw(load='X'*30) Use scapy to send 100 random packets with new set VF0's MAC, verify the -packets can be received and forwarded by the VF +packets can be received and forwarded by the VF:: + + p=Ether(dst="00:01:23:45:67:11")/IP()/Raw(load='X'*30) Reset to original mac address