From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 9993358CB for ; Tue, 11 Apr 2017 08:12:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491891150; x=1523427150; h=from:to:cc:subject:date:message-id; bh=V32wEVppAqTpSdusrKoBEVwnHxsAtsW3nUWGil6JMos=; b=guAC2gIN6c4efVmiSuRwAu06pG5xUt5wIXbBWWOU3psESltm9XCO4HJ+ wxIDEGTlRz863Uj+p5uY7s+XnPAoGA==; Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2017 23:12:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,184,1488873600"; d="scan'208";a="1118047276" Received: from stv-crb-08.sh.intel.com (HELO dpdk-test60.sh.intel.com) ([10.239.128.48]) by orsmga001.jf.intel.com with ESMTP; 10 Apr 2017 23:12:27 -0700 From: Xueqin Lin To: dts@dpdk.org Cc: Xueqin Lin Date: Mon, 10 Apr 2017 20:08:39 -0400 Message-Id: <1491869319-6815-1-git-send-email-xueqin.lin@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dts] [PATCH] add vlan filter test plan to VF daemon 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: Tue, 11 Apr 2017 06:12:31 -0000 --- test_plans/vf_daemon_test_plan.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test_plans/vf_daemon_test_plan.rst b/test_plans/vf_daemon_test_plan.rst index 4e66d8a..795c787 100644 --- a/test_plans/vf_daemon_test_plan.rst +++ b/test_plans/vf_daemon_test_plan.rst @@ -407,4 +407,29 @@ Test Case 14: Promisc mode received by VF0 +Test Case 14: Set Vlan filter for VF from PF +============================================ +1. Start VF0 testpmd, set it in rxonly forwarding mode, enable verbose output + +2. Send packet without vlan id to random MAC, check VF0 can receive packet + +3. Add vlan filter id as random 1~4095 for VF0 from PF:: + testpmd> rx_vlan add id port 0 vf 1 + +4. Send packet from tester to VF0 with wrong vlan id to random MAC, check VF0 + can't receive packet + +5. Send packet from tester to VF0 with configured vlan id to random MAC, check + VF0 can receive packet + +6. Remove vlan filter id for VF0 from PF:: + testpmd> rx_vlan rm id port 0 vf 1 + +7. Send packet from tester to VF0 with wrong vlan id to random MAC, check VF0 + can receive packet + +8. Send packet from tester to VF0 with configured vlan id to random MAC, check + VF0 can receive packet + +9. Send packet without vlan id to random MAC, check VF0 can receive packet -- 2.5.5