From patchwork Sun Nov 22 06:12:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parav Pandit X-Patchwork-Id: 1404425 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nvidia.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nvidia.com header.i=@nvidia.com header.a=rsa-sha256 header.s=n1 header.b=CfWY3b3d; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4Cf0NN4t7dz9sT6 for ; Sun, 22 Nov 2020 17:13:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727344AbgKVGNU (ORCPT ); Sun, 22 Nov 2020 01:13:20 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:19496 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727244AbgKVGNT (ORCPT ); Sun, 22 Nov 2020 01:13:19 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sat, 21 Nov 2020 22:13:21 -0800 Received: from sw-mtx-036.mtx.labs.mlnx (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 22 Nov 2020 06:13:18 +0000 From: Parav Pandit To: , , , CC: Parav Pandit Subject: [PATCH net 0/2] devlink port attribute fixes Date: Sun, 22 Nov 2020 08:12:55 +0200 Message-ID: <20201122061257.60425-1-parav@nvidia.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1606025602; bh=4hf+sM6RuaeZKlLfkO+B0gkJBFyGYx97tyWJp2TkjUE=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy; b=CfWY3b3dD2+lmhzcRHKsgPZmFJaUMnrMyRxqUlfkVTlvC1Bs5iDU9ITrmqT+5E8PE fo5e+CI2pBt3Zn9BXq0lddYLRnXWOwn/5K+z/WniHejbDJKNYqLfiVkXGS3NRcq/fV YUWudLirRzPOjNpI4wiaZGAgfCfnVb5riZSaSo552v1+NVNsYsp2QzwhX1OHEm3gDw FvWWSjVoRZ/GeCrmfzCTdYneUdYPEiV2Y7s5lKTYEAKewBum0LslP8gzGxmx0hiskf 77H5jMgr7ih7YLK0+pc2E/qHxLWaet0FRqq95KWcZDbPfhsCFhcyMDTmrrWCqT9vIM 0HJFKMnG5+h0g== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patchset contains 2 small fixes for devlink port attributes. Patch summary: Patch-1 synchronize the devlink port attribute reader with net namespace change operation Patch-2 Ensure to return devlink port's netdevice attributes when netdev and devlink instance belong to same net namespace Parav Pandit (2): devlink: Hold rtnl lock while reading netdev attributes devlink: Make sure devlink instance and port are in same net namespace net/core/devlink.c | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-)