From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E6D6DADD7 for ; Wed, 4 Feb 2015 16:09:34 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 04 Feb 2015 07:04:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,518,1418112000"; d="scan'208";a="672668908" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by fmsmga002.fm.intel.com with ESMTP; 04 Feb 2015 07:09:31 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 4 Feb 2015 23:09:30 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.91]) by shsmsx102.ccr.corp.intel.com ([169.254.2.124]) with mapi id 14.03.0195.001; Wed, 4 Feb 2015 23:09:29 +0800 From: "Liu, Yong" To: "Xu, HuilongX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V3] update framework for support fortville NIC test Thread-Index: AQHQQCaxKYAVxFwFH0OG8qQtEs8paJzgmHRg Date: Wed, 4 Feb 2015 15:09:30 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10D6AD17@SHSMSX103.ccr.corp.intel.com> References: <1423018745-18475-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1423018745-18475-1-git-send-email-huilongx.xu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V3] update framework for support fortville NIC test 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: Wed, 04 Feb 2015 15:09:35 -0000 Applied. Thanks, huilong.=20 Skip crb.py modification for this function will be removed later.=20 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of huilongx.xu > Sent: Wednesday, February 04, 2015 10:59 AM > To: dts@dpdk.org > Subject: [dts] [PATCH V3] update framework for support fortville NIC test >=20 > execution_fortville.cfg is the test case list for fortville NIC >=20 > crb.py, add fortville NIC kernel driver(i40e) in dts >=20 > settings.py, add fortville NIC info in dts >=20 > test_case.py, insmod and used i40e for fortvill NIC >=20 > Signed-off-by: huilongx.xu > --- > execution_fortville.cfg | 21 +++++++++++++++++++++ > framework/crb.py | 8 +++++++- > framework/settings.py | 6 ++++++ > framework/test_case.py | 4 ++++ > 4 files changed, 38 insertions(+), 1 deletions(-) > create mode 100644 execution_fortville.cfg >=20 > diff --git a/execution_fortville.cfg b/execution_fortville.cfg > new file mode 100644 > index 0000000..15f2ccf > --- /dev/null > +++ b/execution_fortville.cfg > @@ -0,0 +1,21 @@ > +[Execution1] > +crbs=3D > +drivername=3D > +test_suites=3D > + cmdline, > + hello_world, > + multiprocess, > + blacklist > +targets=3D > + x86_64-native-linuxapp-gcc > +parameters=3Dnic_type=3Dfortville_eagle:func=3Dtrue > + > +[Execution2] > +crbs=3D > +drivername=3D > +test_suites=3D > + l2fwd, > + l3fwd > +targets=3D > + x86_64-native-linuxapp-gcc > +parameters=3Dnic_type=3Dfortville_eagle:perf=3Dtrue > diff --git a/framework/crb.py b/framework/crb.py > index d41f51b..03b9026 100644 > --- a/framework/crb.py > +++ b/framework/crb.py > @@ -150,7 +150,11 @@ class Crb(object): > self.send_expect("modprobe e1000e", "# ", 20) > self.send_expect("modprobe e1000", "# ", 20) > self.send_expect("modprobe virtio_net", "# ", 20) > - > + > + self.send_expect("modprobe i40e", "# ", 60) > + out =3D self.send_expect("lsmod |grep i40e", "# ", 30) > + if "i40e" not in out: > + self.logger.error("please check the os install i40e driver > already."); > try: > for (pci_bus, pci_id) in self.pci_devices_info: > """ > @@ -173,6 +177,8 @@ class Crb(object): > self.send_expect("echo -n 0000:%s > > /sys/bus/pci/drivers/e1000/bind" % pci_bus, "# ") > elif pci_id in ('1af4:1000'): > self.send_expect("echo 0000%s > > /sys/bus/pci/drivers/virtio-pci/bind" % pci_bus, "# ") > + elif pci_id in ('8086:1583','8086:1584','8086:1572'): > + self.send_expect("echo 0000:%s > > /sys/bus/pci/drivers/i40e/bind" % pci_bus, "# ") > else: > continue >=20 > diff --git a/framework/settings.py b/framework/settings.py > index 2ef8db8..40b81fb 100644 > --- a/framework/settings.py > +++ b/framework/settings.py > @@ -55,6 +55,9 @@ NICS =3D { > 'I217LM': '8086:153a', > 'I218V': '8086:1559', > 'I218LM': '8086:155a', > + 'fortville_eagle': '8086:1572', > + 'fortville_spirit': '8086:1583', > + 'fortville_spirit_single': '8086:1584', > } >=20 > DRIVERS =3D { > @@ -80,6 +83,9 @@ DRIVERS =3D { > 'I217LM': 'igb', > 'I218V': 'igb', > 'I218LM': 'igb', > + 'fortville_eagle': 'i40e', > + 'fortville_spirit': 'i40e', > + 'fortville_spirit_single':'i40e' > } >=20 > """ > diff --git a/framework/test_case.py b/framework/test_case.py > index 706003f..07fdc36 100644 > --- a/framework/test_case.py > +++ b/framework/test_case.py > @@ -76,5 +76,9 @@ class TestCase(object): > bitrate *=3D 10 # 10 Gb NICs > elif self.nic =3D=3D "avoton2c5": > bitrate *=3D 2.5 # 2.5 Gb NICs > + elif self.nic in ["fortville_spirit", "fortville_spirit_single"]= : > + bitrate *=3D 40 > + elif self.nic =3D=3D 'fortville_eagle': > + bitrate *=3D 10 >=20 > return bitrate * num_ports / 8 / (frame_size + 20) > -- > 1.7.4.4