From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DD607A00C3; Mon, 8 Jun 2020 05:40:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7FC0D4CA6; Mon, 8 Jun 2020 05:40:41 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A5781375B for ; Mon, 8 Jun 2020 05:40:39 +0200 (CEST) IronPort-SDR: 3JDI3ZSzhzmq6BoysJoSju0LNNvH68dfkSEUD8W7pCDSmi8NitmXXmqJAyo5BOsxXnLWpgunmf TnWgd8PcwbBg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2020 20:40:38 -0700 IronPort-SDR: myw0XlNjRv3vzaQKWn6b3poG0Qz+yprWKjier/RUMd83Fz362Zw/fRBoYFXGOR4kG7nneAGixd gfafe/wss6HQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,486,1583222400"; d="scan'208";a="259310549" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by orsmga007.jf.intel.com with ESMTP; 07 Jun 2020 20:40:36 -0700 From: lihong To: dts@dpdk.org, zhaoyan.chen@intel.com Cc: lihong Date: Mon, 8 Jun 2020 04:09:14 +0800 Message-Id: <1591560554-20119-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] doc/dts_gsg: modify document according to current dts and dpdk support 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" 1. now dts support python3, so use python3 instead of python2 2. update os of dpdk support 3. use ubuntu 18.04 instead of fedora 20 as tester env os Signed-off-by: lihong --- doc/dts_gsg/sys_reqs.rst | 43 ++++++++++++++++++---------------------- doc/dts_gsg/trex_known_issue.rst | 4 ++-- 2 files changed, 21 insertions(+), 26 deletions(-) diff --git a/doc/dts_gsg/sys_reqs.rst b/doc/dts_gsg/sys_reqs.rst index cbfc040..96a27ec 100644 --- a/doc/dts_gsg/sys_reqs.rst +++ b/doc/dts_gsg/sys_reqs.rst @@ -18,7 +18,7 @@ Setup Tester Environment .. note:: - Please install the latest Fedora distribution on the tester before install DPDK Test Suite on tester. Currently we recommend Fedora 20 for tester. The setup instruction and required packages may be different on different operation systems. + Please install the latest ubuntu distribution on the tester before install DPDK Test Suite on tester. Currently we recommend ubuntu 18.04 for tester. The setup instruction and required packages may be different on different operation systems. To enable tester environment, you need to install script language, tool chain and third party packet generator, etc. @@ -30,8 +30,8 @@ Since DPDK Test Suite Tester communicates with DUT via SSH, please install and s .. code-block:: console - yum install sshd # download / install ssh software - systemctl enable sshd.service # start ssh service + apt-get install sshd # download / install ssh software + systemctl enable ssh # start ssh service For create authorized login session, user needs to generate RSA authentication keys to ssh connection. @@ -47,7 +47,7 @@ Since some third party tools required TCL (Tool Command Language) supports, plea .. code-block:: console - yum install tcl # download / install tcl software + apt-get install tcl # download / install tcl software Install Third Party python modules ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -65,12 +65,13 @@ Please see installation instruction as the following: .. code-block:: console - yum install python-xlwt - yum install python-pexpect - yum install numpy - yum install python-docutils - yum install pcapy - yum install python-xlrd + apt-get install python3-pip + apt-get install python3-pexpect + apt-get install python3-pcapy + apt-get install python3-numpy + apt-get install python3-docutils + pip3 insatll xlwt + pip3 install xlrd Setup and configure Scapy ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -80,14 +81,7 @@ DTS uses python module scapy to forge or decode packets of a wide number of prot .. code-block:: console - yum install scapy - -Fedora20 default kernel will strip vlan header automatically and thus it will cause that scapy can’t detect vlan packet normally. To solve this issue, we need to configure scapy use libpcap which is a low-level network traffic monitoring tool. - -.. code-block:: console - - vim /usr/lib/python2.7/site-packages/scapy/config.py # open configure python files - use_pcap = True # find use_pcap and set it to True + apt-get install python3-scapy Install DPDK Test Suite on tester ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -119,12 +113,13 @@ Setup Target Environment This section describes how to deploy DPDK Test Suite packages into DUT target.So far, DPDK Test Suite supports the following OS on DUT: -* Fedora18/19/20/23/24/25 -* Ubuntu12.04/14.04/16.04 -* WindRiver 6.0/7.0 -* FreeBSD 10 -* RedHat 6.5/7.0/7.3 -* SUSE 11 +* Fedora 32 +* Ubuntu 16.04/18.04/20.04 +* FreeBSD 12.1 +* RedHat 7.7/8.0 +* SUSE 15 +* Centos 7.7/8.0 +* OpenWRT 19.07 Before run DPDK Test Suite on target, we need to configure target environment, it includes BIOS setting, Network configure, compiler environment, etc. diff --git a/doc/dts_gsg/trex_known_issue.rst b/doc/dts_gsg/trex_known_issue.rst index 7807dd2..8a84e7c 100644 --- a/doc/dts_gsg/trex_known_issue.rst +++ b/doc/dts_gsg/trex_known_issue.rst @@ -91,10 +91,10 @@ resolved scheme --------------- #. backup your scapy:: - cp -fr /usr/lib/python2.7/site-packages/scapy /usr/lib/python2.7/site-packages/scapy_backup + cp -fr /usr/lib/python3/site-packages/scapy /usr/lib/python3/site-packages/scapy_backup #. unify scapy version with trex:: - cp -fr /opt/trex/v2.41/trex_client/external_libs/scapy-2.3.1/python2/scapy /usr/lib/python2.7/site-packages/scapy + cp -fr /opt/trex/v2.41/trex_client/external_libs/scapy-2.3.1/python3/scapy /usr/lib/python3/site-packages/scapy other issues ============ -- 2.7.4