From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id D2A7BA00E6 for ; Fri, 22 Mar 2019 07:27:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 993F41B575; Fri, 22 Mar 2019 07:27:21 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C146F1B56C for ; Fri, 22 Mar 2019 07:27:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 23:27:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,255,1549958400"; d="scan'208";a="157292488" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 21 Mar 2019 23:27:17 -0700 From: Jianwei Mei To: dts@dpdk.org Cc: Jianwei Mei Date: Fri, 22 Mar 2019 14:31:16 +0800 Message-Id: <1553236276-75799-1-git-send-email-jianweix.mei@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] test_plans/etag: add hardware informations 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" modify x550 to X552/X557 and add hardware infos Signed-off-by: Jianwei Mei --- test_plans/etag_test_plan.rst | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/test_plans/etag_test_plan.rst b/test_plans/etag_test_plan.rst index 6350d64..f643a12 100644 --- a/test_plans/etag_test_plan.rst +++ b/test_plans/etag_test_plan.rst @@ -35,12 +35,12 @@ External Tag (E-tag) Tests ========================== In some systems an additional external tag (E-tag) can be present before the -VLAN. NIC X550 support VLANs in presence of external tags. +VLAN. NIC X552/X557 support VLANs in presence of external tags. E-tag mode is used for systems where the device adds a tag to identify a subsystem (usually a VM) and the near end switch adds a tag indicating the destination subsystem. -The support of E-tag features by X550 consists in: +The support of E-tag features by X552/X557 consists in: - The filtering of received E-tag packets - E-tag header stripping by VF device in received packets - E-tag header insertion by VF device in transmitted packets @@ -49,19 +49,38 @@ The support of E-tag features by X550 consists in: Prerequisites ============= +1. Hardware: + +- Machine type: SuperMicro 1U Xeon D Broadwell SoC uServer +- Product Name: SYS-5018D-FN4T +- Nic: Sagepond(X552/X557-AT) + +Note: you can use "dmidecode | grep 'Product Name'" command to get the product name. + +2. Bios: + +- Enable etag items in BIOS + +3. Software: + +- DPDK: http://dpdk.org/git/dpdk + +Set up scenario +=============== + 1. Create 2VF devices from PF device:: ./dpdk_nic_bind.py --st 0000:84:00.0 'Device 1563' drv=igb_uio unused= echo 2 > /sys/bus/pci/devices/0000\:84\:00.0/max_vfs -2. Detach VFs from the host, bind them to pci-stub driver:: +2. Detach VFs from the host, bind them to pci-stub or vfio-pci driver:: /sbin/modprobe pci-stub - using `lspci -nn|grep -i ethernet` got VF device id, for example "8086 1565":: + using `lspci -nn|grep -i ethernet` got VF device id, for example "8086:15ad":: - echo "8086 1565" > /sys/bus/pci/drivers/pci-stub/new_id + echo "8086:15ad" > /sys/bus/pci/drivers/pci-stub/new_id echo 0000:84:10.0 > /sys/bus/pci/devices/0000:84:10.0/driver/unbind echo 0000:84:10.0 > /sys/bus/pci/drivers/pci-stub/bind echo 0000:84:10.2 > /sys/bus/pci/devices/0000:84:10.2/driver/unbind -- 2.17.2