From patchwork Wed Aug 19 21:58:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Keller X-Patchwork-Id: 1348014 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BX1rk5Pflz9sRK for ; Thu, 20 Aug 2020 07:59:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id ED840862EC; Wed, 19 Aug 2020 21:59:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ylU1ga43Pr50; Wed, 19 Aug 2020 21:58:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E97C1862C9; Wed, 19 Aug 2020 21:58:59 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 151181BF3B9 for ; Wed, 19 Aug 2020 21:58:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EF2EE226C2 for ; Wed, 19 Aug 2020 21:58:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DDb3xv26y6LU for ; Wed, 19 Aug 2020 21:58:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by silver.osuosl.org (Postfix) with ESMTPS id 4D3F6226A9 for ; Wed, 19 Aug 2020 21:58:54 +0000 (UTC) IronPort-SDR: Lv303Ksvdfaccdjq16cY/e7yBnuQ3k/qY+rFDVZr93GI8lHPqJFJB9ezcno8PlwD9MJPECU9od rUv+Q8+4hTBg== X-IronPort-AV: E=McAfee;i="6000,8403,9718"; a="216734393" X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="216734393" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2020 14:58:53 -0700 IronPort-SDR: kDAqQRW3c1B0JiInfSTiW91W7pRJ741kjuy5JBkMEHyPvvDLsJPkoWimYMZjAURVRWLuHogofd 9ipTDJp/fOjA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="329469936" Received: from jekeller-desk.amr.corp.intel.com ([10.166.241.33]) by fmsmga002.fm.intel.com with ESMTP; 19 Aug 2020 14:58:52 -0700 From: Jacob Keller To: Intel Wired LAN , Anthony Nguyen Date: Wed, 19 Aug 2020 14:58:35 -0700 Message-Id: <20200819215838.3834786-1-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.28.0.218.ge27853923b9d.dirty MIME-Version: 1.0 Subject: [Intel-wired-lan] [PATCH 0/3] ice devlink updates X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" This series includes a couple of minor cleanups in ice_devlink.c First, Ani converts ice_info_get_dsn into a void function, as it always returns success and does not need to conform to the factory pattern of the other info reporting functions. Second, Jake adds reporting of the DDP Track ID for the DDP package to devlink info. The track ID is indicated as a bundle_id which refers to the tracking identifier for the DDP package. This is similar to the fw.bundle_id which refers to the main firmware block. This track ID is useful as the DDP version alone is not enough to uniquely identify the DDP package. Finally, Jake refactored the devlink_port to be tracked by the ice_vsi structure instead of ice_pf. Doing so helps avoid some cleanup ordering issues that resulted in possibly calling devlink_port_unregister twice, or for a devlink_port that was never registered. Additionally, this paves the way for a future addition of devlink_port for virtual functions and other types of ports besides the main PF port. Anirudh Venkataramanan (1): ice: Change ice_info_get_dsn to be void Jacob Keller (2): ice: add the DDP Track ID to devlink info ice: refactor devlink_port to be per-VSI Documentation/networking/devlink/ice.rst | 5 ++ drivers/net/ethernet/intel/ice/ice.h | 7 +- drivers/net/ethernet/intel/ice/ice_devlink.c | 72 ++++++++++++-------- drivers/net/ethernet/intel/ice/ice_devlink.h | 4 +- drivers/net/ethernet/intel/ice/ice_lib.c | 5 +- drivers/net/ethernet/intel/ice/ice_main.c | 8 +-- 6 files changed, 60 insertions(+), 41 deletions(-) base-commit: 94f0e130c54caede97dd62d5fec8ada4142fe68f