From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6B45B1E2F; Tue, 10 Jan 2017 10:22:45 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP; 10 Jan 2017 01:22:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,343,1477983600"; d="scan'208";a="1081262176" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga001.jf.intel.com with ESMTP; 10 Jan 2017 01:22:43 -0800 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 10 Jan 2017 09:22:42 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.173]) by irsmsx112.ger.corp.intel.com ([169.254.1.175]) with mapi id 14.03.0248.002; Tue, 10 Jan 2017 09:22:42 +0000 From: "De Lara Guarch, Pablo" To: Yoni Gilad , "Jain, Deepak K" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] tools: fix active interface detection in dpdk-devbind.py Thread-Index: AQHSapbFndc6IlQHsUa1wMdEoR6f6KExcHjw Date: Tue, 10 Jan 2017 09:22:41 +0000 Message-ID: References: <1483979853-16386-1-git-send-email-yonig@radcom.com> In-Reply-To: <1483979853-16386-1-git-send-email-yonig@radcom.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTc5NGY3MmQtMTRiNi00ODYyLTlhZjYtYjExYWU1NDhmYmJkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlBTVmtRZm03b05qNTVZUHJtQlpQVFBoXC82WEk3U24rVjFZT2NoRFhqZDlvPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] tools: fix active interface detection in dpdk-devbind.py 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: , X-List-Received-Date: Tue, 10 Jan 2017 09:22:46 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yoni Gilad > Sent: Monday, January 09, 2017 4:38 PM > To: De Lara Guarch, Pablo; Jain, Deepak K > Cc: dev@dpdk.org; Yoni Gilad; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] tools: fix active interface detection in dpdk= - > devbind.py >=20 > When adding crypto devices, the "Active" and "Ssh_if" attributes of > existing network devices were reset. This causes the follwing issues: >=20 > - Network interfaces aren't marked as "*Active*" in the --status output. > - Active network interfaces can be unbound without the --force option, > causing loss of network connection. >=20 > The reset was caused by the call to devices[d].update in > get_crypto_details. >=20 > This patch prevents the update on non-crypto devices. >=20 > Fixes: cb4a1d1 ("tools: bind crypto devices") >=20 > CC: stable@dpdk.org >=20 > Signed-off-by: Yoni Gilad > --- > usertools/dpdk-devbind.py | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) >=20 > diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py > index e057b87..1b9c651 100755 > --- a/usertools/dpdk-devbind.py > +++ b/usertools/dpdk-devbind.py > @@ -328,6 +328,9 @@ def get_crypto_details(): >=20 > # based on the basic info, get extended text details > for d in devices.keys(): > + if devices[d]["Class"][0:2] !=3D CRYPTO_BASE_CLASS: > + continue > + > # get additional info and add it to existing data > devices[d] =3D devices[d].copy() > devices[d].update(get_pci_device_details(d).items()) > -- > 1.7.1 Typo in "follwing". Also, the fixline SHA should be " cb4a1d14bf3e", the fi= rst 6 bytes. Apart from this, Acked-by: Pablo de Lara