From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 8DFFFA0679 for ; Mon, 29 Apr 2019 10:54:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 086751B1F1; Mon, 29 Apr 2019 10:54:40 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140083.outbound.protection.outlook.com [40.107.14.83]) by dpdk.org (Postfix) with ESMTP id CD2841B137 for ; Mon, 29 Apr 2019 10:54:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CPALupfB42Ctstkn5KQCu0QOZcEmortyZi8GGChs1Tg=; b=dvW75NHJ0eQJpsFt3/ddCSORCeOZDceuGYUpvRwPTT7cbqKVuKFq75/QB2jC15uSiQ/FX1b9d1lutS82Ymopzd91f5hqTJn5Adws07oRg9rBlM01s3RMMwIf6UELKbqi9qbaOTQ/8w+lxjXnZLKbryFLk4oV+wxnUhEf54d+sys= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3602.eurprd05.prod.outlook.com (52.133.43.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.12; Mon, 29 Apr 2019 08:54:30 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323%4]) with mapi id 15.20.1835.018; Mon, 29 Apr 2019 08:54:30 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: inherit master link settings for representors Thread-Index: AQHU/LCCePrLHrfZLk2oxNJ6AN3sR6ZSykxA Date: Mon, 29 Apr 2019 08:54:30 +0000 Message-ID: References: <1556338798-17768-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1556338798-17768-1-git-send-email-viacheslavo@mellanox.com> 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=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5bfbccbe-0ad6-4141-9587-08d6cc804b2a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB3602; x-ms-traffictypediagnostic: AM0PR0502MB3602: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2958; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(136003)(39860400002)(396003)(199004)(189003)(478600001)(71200400001)(4744005)(71190400001)(68736007)(2906002)(86362001)(6116002)(3846002)(33656002)(14454004)(186003)(102836004)(66446008)(446003)(66066001)(7696005)(99286004)(11346002)(52536014)(8936002)(66946007)(66476007)(76176011)(110136005)(81166006)(81156014)(6506007)(53936002)(256004)(6246003)(316002)(26005)(74316002)(486006)(476003)(2501003)(55016002)(66556008)(25786009)(97736004)(76116006)(73956011)(229853002)(305945005)(7736002)(64756008)(6436002)(5660300002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3602; H:AM0PR0502MB3795.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: JxJLKD0LXXG9yDIGHtDg4cB699j9Uqjy/t4jg3jwNklluyDE8HjXyZoje5O11ZR5GtSrQ7VoqIjqeUoqopBAunPcyLIKrfNmzp9W6FqPf51vJs4Q9jWJ239lhGSRkQe659oR3EG/3znZFhAWvVogp+JWwNrFrflwfWpnuftEZFVfowtlxG2xtQ+udggG2W1imilFk32dFWDhhFahPom2CqmWTKJJ/mOl/ZAemzQ4LEG1Kxgr0xkeh6UyYiVQ57Jexk9la8kynjTuNuUky9MlZ5Row2s1+qStmr1iCJZJ1Q/8CFogTlD2BIttmgwhCfiROs0QWHp8ZxiJTTgmrU5AzV6bC65g8h3J9AIj16OgBu4+A/17RBFrhJsfCYobSXXQhFeqeMeM5S0Q3lV9+Pls4Jck69o4g70bLajHHV/eHo0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5bfbccbe-0ad6-4141-9587-08d6cc804b2a X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 08:54:30.7525 (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-Transport-CrossTenantHeadersStamped: AM0PR0502MB3602 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: inherit master link settings for representors 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" Message-ID: <20190429085430.xZKIlKZYhNPtf7twQf6qilVhC8kyANaN2SusP9m5i5c@z> Saturday, April 27, 2019 7:20 AM=B8 Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH] net/mlx5: inherit master link settings for > representors >=20 > There are some physical link settings can be queried from Ethernet device= s: > link status, link speed, speed capabilities, duplex mode, etc. These sett= ing do > not make a lot of sense for representors due to missing physical link. Th= e > new kernel drivers dropped query for link settings for representors causi= ng > the ioctl call to fail. This patch adds some kind of emulation of link se= ttings to > PMD - representors inherit the link parameters from the master device. Th= e > actual link status (up/down) is retrieved from the representor device. >=20 > Signed-off-by: Viacheslav Ovsiienko Applied to next-net-mlx, thanks.=20