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 F40D9A0613 for ; Fri, 19 Jul 2019 07:55:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DE1601DBF; Fri, 19 Jul 2019 07:55:22 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20085.outbound.protection.outlook.com [40.107.2.85]) by dpdk.org (Postfix) with ESMTP id 35CD51DBF; Fri, 19 Jul 2019 07:55:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WdhPw0KBu3ysxUqBjVcDw79uUEsdrjn7BiivewbflcNH5/Cd46s3FpbKkAW1w+cUHRHWnYDZmpL/Cn3gs9VoCOnkSEilZ4HL9uklO42OVBVRAcwAQDmjO2E3/vHB3lJh3FOUmFyhx7z/8DvsVnH8YFQLHVH+EOVgL3lIPodb/qB8m+ECIxM6gdfyQUgmGzQKUw+WpBwfsNIwABsDEN6lIzee//4v4gm/D5ROnZf26NoWYdkqxJmWrP5v8v95+Lau2G8m7C2nyPz7zuSTT+D/BQzKsMAbeVQSHhdgsha8+illzENAEAxXSq+neOx6caLNTGYDDIwAiFX/gHhIJq7Tkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mowCauFIrrvNajSH4n/g5eK8/pb6GBMcOhDp4jAqAbM=; b=NyWYuSaEz3TSxGZ0YFCdrI0qZglcFiWibu1EIByD6yWV+QLIbvc92nuklfwXegHTaBbI+x2nhieeha0ZmZRsfNGNl073KUnsBx7wUwCmINQZ9g3ESKcJ35SrNOP898qcgSBiEHIgMP9+Ral2vnvToz8K7WfLVzxr93FGY9LZtptHD/dXBXt2Na68WOQUpMA63KF+05vZ7D9SPazmEAYvB3LCPu5lmhc/sRAHqB/z9Fk0gpwxBIAs2EuuVYYmoWBqri6uIqNnZNTil0TvC91PelFuEK8iOW9Z/npSUTOnnIO5dzKgbtTWEkPHFhMcIve2fpeUUHFuO+Tmt80PCY2yBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=mellanox.com;dmarc=pass action=none header.from=mellanox.com;dkim=pass header.d=mellanox.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mowCauFIrrvNajSH4n/g5eK8/pb6GBMcOhDp4jAqAbM=; b=AStDXTvs8o7AK4lQJhYDnKTxJai5jnzIy9bIoYQKySdieC/OFiHhYi8Zv+E/a8ErSbxMiU3E8BFn6r8CETE2TyEUrRjj3XCLSSrDOwYu0RjX+vZSbJOOBPghYkZwkwE4KF4v091DDd7XGR2EJoAZV8iwoxqV1c1Dot2ogtCtLgU= Received: from VI1PR05MB3278.eurprd05.prod.outlook.com (10.170.238.23) by VI1PR05MB5294.eurprd05.prod.outlook.com (20.178.12.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Fri, 19 Jul 2019 05:55:21 +0000 Received: from VI1PR05MB3278.eurprd05.prod.outlook.com ([fe80::75a7:b54e:c238:5c21]) by VI1PR05MB3278.eurprd05.prod.outlook.com ([fe80::75a7:b54e:c238:5c21%5]) with mapi id 15.20.2094.011; Fri, 19 Jul 2019 05:55:21 +0000 From: Slava Ovsiienko To: Stephen Hemminger , "bugzilla@dpdk.org" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [Bug 320] mlx4: info get fails in secondary process Thread-Index: AQHVOO0L09YsvRaqWUWzD194lldypabHeMoAgAoB2RA= Date: Fri, 19 Jul 2019 05:55:20 +0000 Message-ID: References: <20190712140358.6761361a@hermes.lan> In-Reply-To: <20190712140358.6761361a@hermes.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-originating-ip: [95.67.35.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 369ff127-9205-4413-b73a-08d70c0daf41 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR05MB5294; x-ms-traffictypediagnostic: VI1PR05MB5294: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1360; x-forefront-prvs: 01039C93E4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39860400002)(346002)(376002)(396003)(136003)(199004)(189003)(13464003)(76176011)(486006)(86362001)(7696005)(9686003)(102836004)(2501003)(81166006)(7736002)(53546011)(76116006)(6506007)(66066001)(6306002)(55016002)(446003)(8676002)(6246003)(81156014)(966005)(316002)(476003)(6436002)(52536014)(11346002)(110136005)(229853002)(25786009)(33656002)(4326008)(14454004)(6116002)(74316002)(3846002)(305945005)(2906002)(478600001)(71200400001)(71190400001)(68736007)(66446008)(26005)(64756008)(53936002)(256004)(66556008)(66476007)(99286004)(66946007)(45080400002)(8936002)(186003)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB5294; H:VI1PR05MB3278.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: gWY+dg3c3DByfkCr03JKxFkpV0SfmzaEg08K6sp0Sj+Ox99b72c7nMNocdY9Cdwi2zueCeC+p78JBzY6AFCg86cQRXy5dVAGsEnic9QBYy9GGGrLIT3HY3pwJRmlYFTTrvdu3Al1qEflYvMHj8EL0mXrNiBC6QaUGnwrgeLxbLERmJpwovpTWWkPc3lvd1WW3GdpHCeNN0nZD2Ep/OlO8bj45/ZEXj00MfR9e489E7y1jKFZZ+25KeI2mjxKbdoszpqUxxDe6CcwK0tGZIp/FY96N6MjLr7r7wVRl7/EqnrFB0oc+V0qVoJqiW91+rYmqgNAkX7UduBcMJglvzcXp5YUFhiWKGm/K/E9Dh9kuNoYx/D8PfMoDmGyX3kQgeRvTBLzrsuK2Nm8qrUOwy7gsCNsFKWHgwMDyPiIsQveZOc= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 369ff127-9205-4413-b73a-08d70c0daf41 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2019 05:55:20.9193 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: viacheslavo@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5294 Subject: Re: [dpdk-dev] [Bug 320] mlx4: info get fails in secondary process 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" Is it really needed for mlx4? mlx4 uses neither Netlink nor shared context. With best regards, Slava > -----Original Message----- > From: dev On Behalf Of Stephen Hemminger > Sent: Saturday, July 13, 2019 0:04 > To: bugzilla@dpdk.org > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [Bug 320] mlx4: info get fails in secondary proce= ss >=20 > On Fri, 12 Jul 2019 20:04:26 +0000 > bugzilla@dpdk.org wrote: >=20 > > > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugs > > > .dpdk.org%2Fshow_bug.cgi%3Fid%3D320&data=3D02%7C01%7Cviachesla > vo%40m > > > ellanox.com%7Cc75dc339868c42296e5c08d7070c7dbf%7Ca652971c7d2e4d > 9ba6a4d > > > 149256f461b%7C0%7C0%7C636985622553681551&sdata=3DhyzFADnV52 > GNWXbCPFK > > zmUZS6j6gPbzNAxIqLrM%2BLRM%3D&reserved=3D0 > > > > Bug ID: 320 > > Summary: mlx4: info get fails in secondary process > > Product: DPDK > > Version: 19.08 > > Hardware: All > > OS: All > > Status: UNCONFIRMED > > Severity: normal > > Priority: Normal > > Component: other > > Assignee: dev@dpdk.org > > Reporter: stephen@networkplumber.org > > Target Milestone: --- > > > > Attempts to do dev_info_get in secondary process fail because the > > driver handle to infiniband (priv->ctx) is not valid in secondary proce= ss. This > leads to: > > > > #0 0x00007ffff5d06ab4 in _IO_vfprintf_internal > > (s=3Ds@entry=3D0x7fffffffe3c0, format=3D, > > format@entry=3D0x7ffff496a605 "%s/device/net", > > ap=3Dap@entry=3D0x7fffffffe528) at vfprintf.c:1635 > > #1 0x00007ffff5d32599 in _IO_vsnprintf (string=3D0x7fffffffe4b0 "", > > maxlen=3D, format=3D0x7ffff496a605 "%s/device/net", > > args=3Dargs@entry=3D0x7fffffffe528) at vsnprintf.c:119 > > #2 0x00007ffff5d0fd32 in __snprintf (s=3Ds@entry=3D0x0, > > maxlen=3Dmaxlen@entry=3D0, > > format=3Dformat@entry=3D0x7ffff496a605 "%s/device/net") at snprintf.c:3= 4 > > #3 0x00007ffff4720b8b in mlx4_get_ifname > > (priv=3Dpriv@entry=3D0xc0137e93c0, > > ifname=3Difname@entry=3D0x7fffffffe690) at > > /usr/src/redhat/BUILD/dpdk-18.11/drivers/net/mlx4/mlx4_ethdev.c:71 > > #4 0x00007ffff47214e4 in mlx4_dev_infos_get (dev=3D, > > info=3D0x7fffffffe6e0) at > > /usr/src/redhat/BUILD/dpdk-18.11/drivers/net/mlx4/mlx4_ethdev.c:583 > > #5 0x00007ffff44b896c in rte_eth_dev_info_get > > (port_id=3Dport_id@entry=3D0, > > dev_info=3Ddev_info@entry=3D0x7fffffffe6e0) at > > /usr/src/redhat/BUILD/dpdk-18.11/lib/librte_ethdev/rte_ethdev.c:2532 > > >=20 > I am testing a patch for this.