From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6A351E6D for ; Fri, 22 Apr 2016 08:06:58 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 21 Apr 2016 23:06:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,516,1455004800"; d="scan'208";a="964068870" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga002.fm.intel.com with ESMTP; 21 Apr 2016 23:06:58 -0700 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Fri, 22 Apr 2016 14:02:35 +0800 Message-Id: <1461304956-20509-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1][dts 1/2] add allmutlicast and broadcast test plan 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: , X-List-Received-Date: Fri, 22 Apr 2016 06:06:58 -0000 Signed-off-by: xu,huilong --- test_plans/dynamic_config_test_plan.rst | 57 ++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/test_plans/dynamic_config_test_plan.rst b/test_plans/dynamic_config_test_plan.rst index f1dbd1b..93a0434 100644 --- a/test_plans/dynamic_config_test_plan.rst +++ b/test_plans/dynamic_config_test_plan.rst @@ -1,4 +1,4 @@ -.. Copyright (c) <2010, 2011>, Intel Corporation +.. Copyright (c) <2010, 2016>, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without @@ -194,6 +194,61 @@ Send a packet with with destination MAC address equal with the port 8 address.:: Verify that the packet was received (RX-packets incremented). +Test Case: Disable Promiscuous Mode boardcast +=================================== + +Disable promiscuous mode and verify that the packets are received boardcast packet.:: + + testpmd> set promisc all off + testpmd> set fwd io + testpmd> clear port stats all +Send a packet with destination MAC address different than the port 0 address.:: + + testpmd> show port stats 1 + + ######################## NIC statistics for port 1 ######################## + RX-packets: 0 RX-errors: 0 RX-bytes: 0 + TX-packets: 0 TX-errors: 0 TX-bytes: 0 + ############################################################################ + +Verify that no packet was fwd (port 1 TX-packets is 0). + testpmd> clear port stats all +Send a boardcast packet .:: + + ######################## NIC statistics for port 1 ######################## + RX-packets: 0 RX-errors: 0 RX-bytes: 0 + TX-packets: 1 TX-errors: 0 TX-bytes: 80 + ############################################################################ + +Verify that the packet was received and fwd(TX-packets is 1). +Test Case: Disable Promiscuous Mode mutlicast +=================================== + +Disable promiscuous mode and verify that the packets are received mutlicast packet.:: + + testpmd> set promisc all off + testpmd> set fwd io + testpmd> clear port stats all + testpmd> set allmulti all off +Send a packet with destination MAC is mutlicast mac eg: 01:00:00:33:00:01.:: + + testpmd> show port stats 1 + + ######################## NIC statistics for port 1 ######################## + RX-packets: 0 RX-errors: 0 RX-bytes: 0 + TX-packets: 0 TX-errors: 0 TX-bytes: 0 + ############################################################################ + +Verify that no packet was fwd (port 1 TX-packets is 0). + testpmd> clear port stats all + testpmd> set allmulti all on +Send a packet with destination MAC is mutlicast mac eg: 01:00:00:33:00:01.:: + + ######################## NIC statistics for port 1 ######################## + RX-packets: 0 RX-errors: 0 RX-bytes: 0 + TX-packets: 1 TX-errors: 0 TX-bytes: 80 + ############################################################################ +Verify that the packet was received and fwd(TX-packets is 1). -- 1.9.3