From patchwork Fri Jul 10 10:10:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73731 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55DA3A052A; Fri, 10 Jul 2020 12:11:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BB96C1D9BE; Fri, 10 Jul 2020 12:11:04 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 172FD1C1BB for ; Fri, 10 Jul 2020 12:11:01 +0200 (CEST) IronPort-SDR: xd5pgoQLwYgmB5NEkzPJGsZxGuBe2cY5ILYWMjPKTmUK/u4HHE5xxCgt1gxvOaiJGO185ZF6pf b3O2EDIXyrdQ== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380937" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380937" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:01 -0700 IronPort-SDR: fjsy2BYWQpst8j+bwnI90Ormyy3PiQMezJMaR6iR7Wd67/uhSHkBTqJ/exxuYh5CresGtwhhVs z+4+a/jVCODQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384579" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:00 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney Date: Fri, 10 Jul 2020 11:10:47 +0100 Message-Id: <20200710101055.33671-2-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 1/9] usertools/cpu_layout: add python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" add python2 deprecation notice Signed-off-by: Louise Kilheeney --- usertools/cpu_layout.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index 6f129b1db..5423c7965 100755 --- a/usertools/cpu_layout.py +++ b/usertools/cpu_layout.py @@ -10,6 +10,10 @@ except NameError: xrange = range # Python 3 +if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) + sockets = [] cores = [] core_map = {} From patchwork Fri Jul 10 10:10:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73732 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 85104A052A; Fri, 10 Jul 2020 12:11:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 435651D9CC; Fri, 10 Jul 2020 12:11:06 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B05BC1D9B9 for ; Fri, 10 Jul 2020 12:11:03 +0200 (CEST) IronPort-SDR: EK+prSrmwiDCD7rYi3vzkyccm1c+dT89ja7BX2W8LrbmG9AGcy7UhM+Dmz+s90rcAP5o4pdgzk led6G8lFIz2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380944" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380944" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:03 -0700 IronPort-SDR: omxWJxOsFIiOg31Kct9YCgN8bh09exbeGCgXuQfwZg8WrHiElZAmHbLAe314PTdSlPT9kg9eek leiMKidQShNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384587" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:01 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney , Kevin Laatz Date: Fri, 10 Jul 2020 11:10:48 +0100 Message-Id: <20200710101055.33671-3-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 2/9] usertools/dpdk-telemetry-client: python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" add python2 depecation notice Cc: Kevin Laatz Signed-off-by: Louise Kilheeney --- usertools/dpdk-telemetry-client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py index 35edb7cd2..98d28fa89 100755 --- a/usertools/dpdk-telemetry-client.py +++ b/usertools/dpdk-telemetry-client.py @@ -23,6 +23,10 @@ except NameError: raw_input = input # Python 3 +if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) + class Socket: def __init__(self): From patchwork Fri Jul 10 10:10:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73733 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 80033A052A; Fri, 10 Jul 2020 12:11:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D1BC1D9F0; Fri, 10 Jul 2020 12:11:08 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 132DE1D9C2 for ; Fri, 10 Jul 2020 12:11:04 +0200 (CEST) IronPort-SDR: tmQC0FMyIB98O2hKC1CXrQav6r32SoYomz6Tdrgi/B0u6OBbAGCVZyPauyf8vQJsuVcevemjSf BcGqFrUPW+2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380949" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380949" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:04 -0700 IronPort-SDR: kIsLPPHe0obD2CdbrQ9GMHL0p8eUzDYhV1u/zUCbU2mbNE7ww8pdxZbotgMlm7Azz1YhTMitG1 u/ITYox/t1eQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384591" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:03 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney Date: Fri, 10 Jul 2020 11:10:49 +0100 Message-Id: <20200710101055.33671-4-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 3/9] usertools/dpdk-devbind: add python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" add python2 deprecation notice Signed-off-by: Louise Kilheeney --- usertools/dpdk-devbind.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index dc008823f..86b6b53c4 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -10,6 +10,10 @@ import subprocess from os.path import exists, abspath, dirname, basename +if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) + # The PCI base class for all devices network_class = {'Class': '02', 'Vendor': None, 'Device': None, 'SVendor': None, 'SDevice': None} From patchwork Fri Jul 10 10:10:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73734 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 908B4A052A; Fri, 10 Jul 2020 12:11:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88F411DA19; Fri, 10 Jul 2020 12:11:09 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B68321D9D9 for ; Fri, 10 Jul 2020 12:11:06 +0200 (CEST) IronPort-SDR: jhg3pUyeX7R3BKDmFBtBQ3pT4QONT3yvbxJKbIybm9O+gzfIlb3esTBpTYmsUg2v3GJUMr3Plr 0Aw332e808Cw== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380952" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380952" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:06 -0700 IronPort-SDR: hIq8twGp6/t/SLDbYr1pVpGVqupiP2kEUxX9NH+4TVqbhNIOiilR+R25okr/4VfixqsGlDJNhM I4tt36wJS51w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384597" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:04 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney , Neil Horman , Ray Kinsella Date: Fri, 10 Jul 2020 11:10:50 +0100 Message-Id: <20200710101055.33671-5-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 4/9] devtools/update_version_map: add python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Cc: Neil Horman Cc: Ray Kinsella Signed-off-by: Louise Kilheeney Acked-by: Neil Horman < --- devtools/update_version_map_abi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devtools/update_version_map_abi.py b/devtools/update_version_map_abi.py index e2104e61e..80a61641e 100755 --- a/devtools/update_version_map_abi.py +++ b/devtools/update_version_map_abi.py @@ -160,6 +160,10 @@ def __generate_internal_abi(f_out, lines): print("};", file=f_out) def __main(): + if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) + arg_parser = argparse.ArgumentParser( description='Merge versions in linker version script.') From patchwork Fri Jul 10 10:10:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73735 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 15E52A052A; Fri, 10 Jul 2020 12:11:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D883D1DB49; Fri, 10 Jul 2020 12:11:11 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 407141D9E7 for ; Fri, 10 Jul 2020 12:11:08 +0200 (CEST) IronPort-SDR: 5UGQCBx4e5ZTRkP+yWEF2DbSMSBHNPITSUYEwVmQnBTIY/FrVBx7IfghGgt51FsYNCeemQB1+A OHtj4EiJiE1A== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380955" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380955" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:07 -0700 IronPort-SDR: KUVtE0gSMR4jXRuqB0YF8qyoH9kPWxB4bwEF74PFx4GqhIO80LTngeBn0/ROQRiPL0wszb+Ivm geYSaUuSJlnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384601" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:06 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney , Olivier Matz Date: Fri, 10 Jul 2020 11:10:51 +0100 Message-Id: <20200710101055.33671-6-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 5/9] app/test-cmdline: add python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Cc: Olivier Matz Signed-off-by: Louise Kilheeney --- app/test-cmdline/cmdline_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-cmdline/cmdline_test.py b/app/test-cmdline/cmdline_test.py index 3a8fac426..954428e2b 100755 --- a/app/test-cmdline/cmdline_test.py +++ b/app/test-cmdline/cmdline_test.py @@ -19,6 +19,9 @@ def runTest(child, test): return 0 child.expect(test["Result"], 1) +if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) # # history test is a special case From patchwork Fri Jul 10 10:10:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73736 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4A70CA052A; Fri, 10 Jul 2020 12:11:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DE141DBB1; Fri, 10 Jul 2020 12:11:13 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A7F0A1DA2A for ; Fri, 10 Jul 2020 12:11:09 +0200 (CEST) IronPort-SDR: 020+nY0YU714jmq6MDWYi122cwjEmh5t0nLNTXrrQMqc1BLlSIxdAl5eBK0VZyRjgoT6LPDDUx W/BpHTrUxhEw== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380958" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380958" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:09 -0700 IronPort-SDR: KjPWy/xOFWlI3F+H0SqQFVunWrqGoJu+TNp0ZMd1o+gr6V+HmnKxbCc9oAPESngf5ZdquM3URZ u+0CrjNOnQsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384606" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:08 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney Date: Fri, 10 Jul 2020 11:10:52 +0100 Message-Id: <20200710101055.33671-7-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 6/9] app/test: add python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" add python2 deprecation notice Signed-off-by: Louise Kilheeney --- app/test/autotest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test/autotest.py b/app/test/autotest.py index b42f48879..cf7584ccd 100644 --- a/app/test/autotest.py +++ b/app/test/autotest.py @@ -17,6 +17,10 @@ def usage(): usage() sys.exit(1) +if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) + target = sys.argv[2] test_whitelist = None From patchwork Fri Jul 10 10:10:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73737 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A8EC7A052A; Fri, 10 Jul 2020 12:11:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4EC0E1DBED; Fri, 10 Jul 2020 12:11:15 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3CBC91DB49 for ; Fri, 10 Jul 2020 12:11:11 +0200 (CEST) IronPort-SDR: GeaCFZAfGLGVRKn/98H8GqnaMKlZVRHCYJ1iy2V1Q5FFbJqwYpm0HsTOGlFsNS4NeW92/yllVP O1PkNM+9kDSw== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380961" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380961" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:10 -0700 IronPort-SDR: fqO1WWD7iicyGuEV0dQfLpXBOtY2tErO/F5cYVqbkFj8RErmsBGkMiK1k5OE+eiqUBqUQ9bsgJ xs78sXJGv07g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384615" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:09 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney , Neil Horman Date: Fri, 10 Jul 2020 11:10:53 +0100 Message-Id: <20200710101055.33671-8-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 7/9] usertools/dpdk-pmdinfo: add python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Cc: Neil Horman Signed-off-by: Louise Kilheeney Acked-by: Neil Horman --- usertools/dpdk-pmdinfo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py index 12f20735e..f9ed75517 100755 --- a/usertools/dpdk-pmdinfo.py +++ b/usertools/dpdk-pmdinfo.py @@ -28,7 +28,9 @@ pcidb = None # =========================================== - +if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) class Vendor: """ From patchwork Fri Jul 10 10:10:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73738 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7809EA052A; Fri, 10 Jul 2020 12:12:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D88201DC44; Fri, 10 Jul 2020 12:11:16 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E306A1DBA8 for ; Fri, 10 Jul 2020 12:11:12 +0200 (CEST) IronPort-SDR: FT6li7WZ1uKl4Fk1An7z336QjI8GGmHONkutkVAC4rKTPfWnO4he/etcRdRZEp/icerstk2w5D VWib9nxVi+aQ== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380964" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380964" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:12 -0700 IronPort-SDR: p0b/GbnCraE48JQyg1tFr368pFxMDW9bGtUtyEe9po14NUL0fg1r0ZUa28fXLSf3394xo5BRFf EpXbsdJKTj+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384634" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:11 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney , Nicolas Chautru Date: Fri, 10 Jul 2020 11:10:54 +0100 Message-Id: <20200710101055.33671-9-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 8/9] app/test-bbdev: python3 compatibility changes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" use of the print function required for python3 compatibility. Cc: Nicolas Chautru Signed-off-by: Louise Kilheeney --- app/test-bbdev/test-bbdev.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index 0194be046..e127fb2eb 100755 --- a/app/test-bbdev/test-bbdev.py +++ b/app/test-bbdev/test-bbdev.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation +from __future__ import print_function import sys import os import argparse @@ -12,7 +13,7 @@ from threading import Timer def kill(process): - print "ERROR: Test app timed out" + print("ERROR: Test app timed out") process.kill() if "RTE_SDK" in os.environ: @@ -66,7 +67,7 @@ def kill(process): args = parser.parse_args() if not os.path.exists(args.testapp_path): - print "No such file: " + args.testapp_path + print("No such file: " + args.testapp_path) sys.exit(1) params = [args.testapp_path] From patchwork Fri Jul 10 10:10:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Louise Kilheeney X-Patchwork-Id: 73739 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C09A1A052A; Fri, 10 Jul 2020 12:12:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1028C1DCD6; Fri, 10 Jul 2020 12:11:18 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 446961DBE4 for ; Fri, 10 Jul 2020 12:11:14 +0200 (CEST) IronPort-SDR: Ha5FP87AE5mGth/IQS3msWsK2eD6RcifnHI86v4HreP2+45y5+oPywDQfM9kPxPb0xsuWupS1J a0iBJTW/aQWQ== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="136380967" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="136380967" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 03:11:13 -0700 IronPort-SDR: FSR9H2nTGPoGsgVr6KrgDvh3FbOQZXz4/69JVcdfQRbHFojNP0MoFQtu1Jo1drEemVKmhADuDe xSv06AqgY7nA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="298384648" Received: from silpixa00389033.ir.intel.com (HELO silpixa00389033.ger.corp.intel.com) ([10.237.223.171]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 03:11:12 -0700 From: Louise Kilheeney To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Louise Kilheeney , Nicolas Chautru Date: Fri, 10 Jul 2020 11:10:55 +0100 Message-Id: <20200710101055.33671-10-louise.kilheeney@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> Subject: [dpdk-dev] [PATCH 9/9] app/test-bbdev: add python2 deprecation notice X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Cc: Nicolas Chautru Signed-off-by: Louise Kilheeney Acked-by: Nicolas Chautru --- app/test-bbdev/test-bbdev.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index e127fb2eb..5ae2dc6c4 100755 --- a/app/test-bbdev/test-bbdev.py +++ b/app/test-bbdev/test-bbdev.py @@ -16,6 +16,10 @@ def kill(process): print("ERROR: Test app timed out") process.kill() +if sys.version_info.major < 3: + print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr) + print("Please use Python 3 instead", file=sys.stderr) + if "RTE_SDK" in os.environ: dpdk_path = os.environ["RTE_SDK"] else: