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 42091A328D for ; Tue, 22 Oct 2019 11:08:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0BDA11BE98; Tue, 22 Oct 2019 11:08:49 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 573F71BE95 for ; Tue, 22 Oct 2019 11:08:47 +0200 (CEST) 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/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 02:08:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="187821820" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 22 Oct 2019 02:08:45 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 02:08:35 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 22 Oct 2019 02:08:34 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 22 Oct 2019 02:08:34 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX151.ccr.corp.intel.com ([10.239.6.50]) with mapi id 14.03.0439.000; Tue, 22 Oct 2019 17:08:32 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1] framework/pmd_output: update regex to support freeBSD Thread-Index: AQHVg0Ar3um3ESt42kuDbWnuZzIFmqdmagAA Date: Tue, 22 Oct 2019 09:08:32 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB44EFF@SHSMSX101.ccr.corp.intel.com> References: <1571133815-17165-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1571133815-17165-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDJkODQ0YTQtMDk4NC00YmI5LWJhZTYtYjI1MjhhZTNkOWU5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoia1F1dDlYOUFVSEYxMW8wclRZMzlUcnNsTDA5a0M3cnhnS1ZcL2FhNjBtM0tFbUFlb0ZrMjBLMEdhdTJ0alhMaFoifQ== 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 V1] framework/pmd_output: update regex to support freeBSD 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Tuesday, October 15, 2019 6:04 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1] framework/pmd_output: update regex to support > freeBSD >=20 > port_info in freeBSD has no domain_id, so update regex to adapt to it >=20 > Signed-off-by: Xiao Qimai > --- > framework/pmd_output.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/framework/pmd_output.py b/framework/pmd_output.py index > bcb3865..e420a65 100644 > --- a/framework/pmd_output.py > +++ b/framework/pmd_output.py > @@ -109,9 +109,9 @@ class PmdOutput(): > :param eal_param: > :return: > """ > - re_w_pci_str =3D '-w\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s' > + re_w_pci_str =3D '\s?-w\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s|\s?- > w\\s+.+?:.+?\\..+?[,.*=3D\d+]?\s' > re_file_prefix_str =3D '--file-prefix=3D.+?\s' > - re_b_pci_str =3D '-b\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s' > + re_b_pci_str =3D '\s?-b\\s+.+?:.+?:.+?\\..+?[,.*=3D\d+]?\s|\s?- > b\\s+.+?:.+?\\..+?[,.*=3D\d+]?\s' > eal_param =3D eal_param + ' ' > # pci_str_list eg: ['-w 0000:1a:00.0 ', '-w 0000:1a:00.1,queue= -num-per- > vf=3D4 ', '-w 0000:aa:bb.1,queue-num-per-vf=3D4 '] > w_pci_str_list =3D re.findall(re_w_pci_str, eal_param) > -- > 1.8.3.1