From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89202C05027 for ; Fri, 3 Feb 2023 21:15:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233544AbjBCVP0 (ORCPT ); Fri, 3 Feb 2023 16:15:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233538AbjBCVPZ (ORCPT ); Fri, 3 Feb 2023 16:15:25 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918538A7FB for ; Fri, 3 Feb 2023 13:15:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675458913; x=1706994913; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oEi2mRBcqb/FagKQ5W9cINzFmzqXGNijaaY6z59SlN4=; b=UTUHBhKV3iuvcgVNm4xEmIkDGkOWc9hgTx/4eyhQ+rlv7fHkFS0cAs29 BNX7kKlLEQwZU9Y3uIzHhMd4ejT6KrauT7YqfOyT7oH7KwuRE35ZWamgn dwZQCBdSSn5CGzK/vWh+Um0A7PuPvGGwZafUQi/8Q7p8z2c1DPEkvR4p1 9uR9RRt0ZZ4F52tiMUEm4NG5o9tfRXyOkK0hf2L3gtLRztR1GH2NSht7G KEx1PfBeMLw/PkybcONN7Jc3ZBspf62FcucxdL2um8BSmaymG3VtUeEyo UlyFSv2g5oK587b+Bp3Ps5OmFL6ZfoZoTZKWU5Lqj/DbMmiYxmVNpFhbZ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10610"; a="393446805" X-IronPort-AV: E=Sophos;i="5.97,271,1669104000"; d="scan'208";a="393446805" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2023 13:15:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10610"; a="911280460" X-IronPort-AV: E=Sophos;i="5.97,271,1669104000"; d="scan'208";a="911280460" Received: from anguy11-upstream.jf.intel.com ([10.166.9.133]) by fmsmga006.fm.intel.com with ESMTP; 03 Feb 2023 13:15:12 -0800 From: Tony Nguyen To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com Cc: Tony Nguyen , netdev@vger.kernel.org, michal.swiatkowski@linux.intel.com Subject: [PATCH net-next 00/10][pull request] implement devlink reload in ice Date: Fri, 3 Feb 2023 13:14:46 -0800 Message-Id: <20230203211456.705649-1-anthony.l.nguyen@intel.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Michal Swiatkowski says: This is a part of changes done in patchset [0]. Resource management is kind of controversial part, so I split it into two patchsets. It is the first one, covering refactor and implement reload API call. The refactor will unblock some of the patches needed by SIOV or subfunction. Most of this patchset is about implementing driver reload mechanism. Part of code from probe and rebuild is used to not duplicate code. To allow this reuse probe and rebuild path are split into smaller functions. Patch "ice: split ice_vsi_setup into smaller functions" changes boolean variable in function call to integer and adds define for it. Instead of having the function called with true/false now it can be called with readable defines ICE_VSI_FLAG_INIT or ICE_VSI_FLAG_NO_INIT. It was suggested by Jacob Keller and probably this mechanism will be implemented across ice driver in follow up patchset. Previously the code was reviewed here [0]. [0] https://lore.kernel.org/netdev/Y3ckRWtAtZU1BdXm@unreal/T/#m3bb8feba0a62f9b4cd54cd94917b7e2143fc2ecd The following are changes since commit 8065c0e13f9875f597920a2af47e5dc2940a9c4f: Merge branch 'yt8531-support' and are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 100GbE Jacob Keller (1): ice: stop hard coding the ICE_VSI_CTRL location Michal Swiatkowski (9): ice: move RDMA init to ice_idc.c ice: alloc id for RDMA using xa_array ice: cleanup in VSI config/deconfig code ice: split ice_vsi_setup into smaller functions ice: split probe into smaller functions ice: sync netdev filters after clearing VSI ice: move VSI delete outside deconfig ice: update VSI instead of init in some case ice: implement devlink reinit action drivers/net/ethernet/intel/ice/ice.h | 6 +- drivers/net/ethernet/intel/ice/ice_common.c | 11 +- drivers/net/ethernet/intel/ice/ice_devlink.c | 103 +- drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +- drivers/net/ethernet/intel/ice/ice_fltr.c | 5 + drivers/net/ethernet/intel/ice/ice_idc.c | 53 +- drivers/net/ethernet/intel/ice/ice_lib.c | 1049 ++++++++--------- drivers/net/ethernet/intel/ice/ice_lib.h | 8 +- drivers/net/ethernet/intel/ice/ice_main.c | 1090 ++++++++++-------- drivers/net/ethernet/intel/ice/ice_vf_lib.c | 2 +- 10 files changed, 1252 insertions(+), 1077 deletions(-) -- 2.38.1