Message ID | 20230927083135.3237206-1-ivecera@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2579451vqu; Wed, 27 Sep 2023 05:07:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyXDeaZz1XlxL6pZjfJPur4LuWRNHAGCa2lv7Qk3PekCwLWnP8rSD7V2eWGoiOLee4GxLp X-Received: by 2002:a05:6a00:1786:b0:690:ca4e:662f with SMTP id s6-20020a056a00178600b00690ca4e662fmr1974795pfg.5.1695816479453; Wed, 27 Sep 2023 05:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695816479; cv=none; d=google.com; s=arc-20160816; b=bHwHoBg7tHvuG3KtrUhHaVZHrrnMH/0/eI68StzRGwoTP6gsc/YXm2FC2w11RWH9Hp qic5UqEX2nt7j79P8u5VKLHyz+iCaPfqJM3LzwyO9tAcz5BUU029vmG8eHa5gQJqiCJH 7+bWroKlF87XRc1eGOGSUPuqXpTI1roz+5CnP51fQi22iCgMi57NhiEbZ7QQfigwzplP XHEGFkJ+ObAcacrjXO5CTP7QGIgea8KuIxTVmcU7FlGFs8Kw6yp4JkXMIdtUf270I+hy sNmThD9AKY5OrAofmcpsiOuvCAn0N/rfMGSsMtVKtjxWydoAfZZaZXQD/N6+ypYlZ3Ks nvNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rb3zxIpSULzDXYGrVPMEtJunp5C3RMSrw/MepQSv0j8=; fh=X581/NfAtwrGdJWYX7ReicuQGGe1jimazZZQLKiH3Gw=; b=SkzMM5Rv9m3M3AphlFapI08UsQ9WyIAYRrdIuYrUc1NfbGDaNv8JJTIyuy9BvtW3jt aavg1a65CA/4fGk5SQwh0pqFV/cewwufTUMPKOMoDvNfWnmEz62ZOE+Fike35u3v+EzR BkDKsLusfUd3OByeoSWac6GhrBpdkVMyMeEoqlN+/zF6ZgM7ckHutWDHov/7HEhIUsY+ nkBc0DDtzPrSgEjf7QfnYL9h7qb8DcvTUpdkGtq6hldaZExtT8f8bLK/W9LVCLAJeWCK 1kGS2N2MXvyPzKDqAbritMxxREEszkp7dMspJWB0kMy8/lyL3oF82RqOFCaAez+HH2KW 56bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dwf9iqwc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a3-20020a63cd43000000b00573f89ac5a1si15218119pgj.102.2023.09.27.05.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 05:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dwf9iqwc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F296C813A5B7; Wed, 27 Sep 2023 01:33:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbjI0Icj (ORCPT <rfc822;ruipengqi7@gmail.com> + 23 others); Wed, 27 Sep 2023 04:32:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjI0Icb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 27 Sep 2023 04:32:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF2A95 for <linux-kernel@vger.kernel.org>; Wed, 27 Sep 2023 01:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695803502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rb3zxIpSULzDXYGrVPMEtJunp5C3RMSrw/MepQSv0j8=; b=Dwf9iqwc9pH+3yabRNhSB/EA7M/yMEWZd1dVOEM4fq300J8gPLOBCLODG/i3/v0crLYkT7 wPCvp4n1t+yCdWeAm3cON03tvMmt0MgXWCYpZ+rBkXBzjG9w1Q++7rHgeV47z/j7b6bRee t5Qd+pWovj2NUVha9U8gfDClkUiFP30= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-94-LhP0U0hdPgKzOIsqtwUPgg-1; Wed, 27 Sep 2023 04:31:38 -0400 X-MC-Unique: LhP0U0hdPgKzOIsqtwUPgg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 599011C0CCC1; Wed, 27 Sep 2023 08:31:38 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.225.119]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8C8212156702; Wed, 27 Sep 2023 08:31:36 +0000 (UTC) From: Ivan Vecera <ivecera@redhat.com> To: netdev@vger.kernel.org Cc: poros@redhat.com, mschmidt@redhat.com, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org, przemyslaw.kitszel@intel.com Subject: [PATCH net-next v2 0/9] i40e: House-keeping and clean-up Date: Wed, 27 Sep 2023 10:31:26 +0200 Message-ID: <20230927083135.3237206-1-ivecera@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 01:33:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778192460989398021 X-GMAIL-MSGID: 1778192460989398021 |
Series |
i40e: House-keeping and clean-up
|
|
Message
Ivan Vecera
Sept. 27, 2023, 8:31 a.m. UTC
The series makes some house-keeping tasks on i40e driver: Patch 1: Removes unnecessary back pointer from i40e_hw Patch 2: Moves I40E_MASK macro to i40e_register.h where is used Patch 3: Refactors I40E_MDIO_CLAUSE* to use the common macro Patch 4: Add header dependencies to <linux/avf/virtchnl.h> Patch 5: Simplifies memory alloction functions Patch 6: Moves mem alloc structures to i40e_alloc.h Patch 7: Splits i40e_osdep.h to i40e_debug.h and i40e_io.h Patch 8: Removes circular header deps, fixes and cleans headers Patch 9: Moves DDP specific macros and structs to i40e_ddp.c Changes: v2 - Fixed kdoc comment for i40e_hw_to_pf() - Reordered patches 5 and 7-9 to make them simplier drivers/net/ethernet/intel/i40e/i40e.h | 76 +++++-------------- drivers/net/ethernet/intel/i40e/i40e_adminq.c | 8 +- drivers/net/ethernet/intel/i40e/i40e_adminq.h | 3 +- .../net/ethernet/intel/i40e/i40e_adminq_cmd.h | 2 + drivers/net/ethernet/intel/i40e/i40e_alloc.h | 24 +++--- drivers/net/ethernet/intel/i40e/i40e_client.c | 1 - drivers/net/ethernet/intel/i40e/i40e_common.c | 11 ++- drivers/net/ethernet/intel/i40e/i40e_dcb.c | 4 +- drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c | 2 +- drivers/net/ethernet/intel/i40e/i40e_ddp.c | 24 +++++- drivers/net/ethernet/intel/i40e/i40e_debug.h | 47 ++++++++++++ .../net/ethernet/intel/i40e/i40e_debugfs.c | 3 +- drivers/net/ethernet/intel/i40e/i40e_diag.h | 5 +- .../net/ethernet/intel/i40e/i40e_ethtool.c | 3 +- drivers/net/ethernet/intel/i40e/i40e_hmc.c | 16 ++-- drivers/net/ethernet/intel/i40e/i40e_hmc.h | 4 + drivers/net/ethernet/intel/i40e/i40e_io.h | 16 ++++ .../net/ethernet/intel/i40e/i40e_lan_hmc.c | 9 +-- .../net/ethernet/intel/i40e/i40e_lan_hmc.h | 2 + drivers/net/ethernet/intel/i40e/i40e_main.c | 57 ++++++++------ drivers/net/ethernet/intel/i40e/i40e_nvm.c | 2 + drivers/net/ethernet/intel/i40e/i40e_osdep.h | 59 -------------- .../net/ethernet/intel/i40e/i40e_prototype.h | 9 ++- drivers/net/ethernet/intel/i40e/i40e_ptp.c | 3 +- .../net/ethernet/intel/i40e/i40e_register.h | 5 ++ drivers/net/ethernet/intel/i40e/i40e_txrx.c | 7 +- drivers/net/ethernet/intel/i40e/i40e_txrx.h | 1 + .../ethernet/intel/i40e/i40e_txrx_common.h | 2 + drivers/net/ethernet/intel/i40e/i40e_type.h | 59 +++----------- .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 + .../ethernet/intel/i40e/i40e_virtchnl_pf.h | 4 +- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 - drivers/net/ethernet/intel/i40e/i40e_xsk.h | 4 + include/linux/avf/virtchnl.h | 4 + 34 files changed, 231 insertions(+), 251 deletions(-) create mode 100644 drivers/net/ethernet/intel/i40e/i40e_debug.h create mode 100644 drivers/net/ethernet/intel/i40e/i40e_io.h delete mode 100644 drivers/net/ethernet/intel/i40e/i40e_osdep.h
Comments
On 9/27/23 10:31, Ivan Vecera wrote: > The series makes some house-keeping tasks on i40e driver: > > Patch 1: Removes unnecessary back pointer from i40e_hw > Patch 2: Moves I40E_MASK macro to i40e_register.h where is used > Patch 3: Refactors I40E_MDIO_CLAUSE* to use the common macro > Patch 4: Add header dependencies to <linux/avf/virtchnl.h> > Patch 5: Simplifies memory alloction functions > Patch 6: Moves mem alloc structures to i40e_alloc.h > Patch 7: Splits i40e_osdep.h to i40e_debug.h and i40e_io.h > Patch 8: Removes circular header deps, fixes and cleans headers > Patch 9: Moves DDP specific macros and structs to i40e_ddp.c > > Changes: > v2 - Fixed kdoc comment for i40e_hw_to_pf() > - Reordered patches 5 and 7-9 to make them simplier > > drivers/net/ethernet/intel/i40e/i40e.h | 76 +++++-------------- > drivers/net/ethernet/intel/i40e/i40e_adminq.c | 8 +- > drivers/net/ethernet/intel/i40e/i40e_adminq.h | 3 +- > .../net/ethernet/intel/i40e/i40e_adminq_cmd.h | 2 + > drivers/net/ethernet/intel/i40e/i40e_alloc.h | 24 +++--- > drivers/net/ethernet/intel/i40e/i40e_client.c | 1 - > drivers/net/ethernet/intel/i40e/i40e_common.c | 11 ++- > drivers/net/ethernet/intel/i40e/i40e_dcb.c | 4 +- > drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c | 2 +- > drivers/net/ethernet/intel/i40e/i40e_ddp.c | 24 +++++- > drivers/net/ethernet/intel/i40e/i40e_debug.h | 47 ++++++++++++ > .../net/ethernet/intel/i40e/i40e_debugfs.c | 3 +- > drivers/net/ethernet/intel/i40e/i40e_diag.h | 5 +- > .../net/ethernet/intel/i40e/i40e_ethtool.c | 3 +- > drivers/net/ethernet/intel/i40e/i40e_hmc.c | 16 ++-- > drivers/net/ethernet/intel/i40e/i40e_hmc.h | 4 + > drivers/net/ethernet/intel/i40e/i40e_io.h | 16 ++++ > .../net/ethernet/intel/i40e/i40e_lan_hmc.c | 9 +-- > .../net/ethernet/intel/i40e/i40e_lan_hmc.h | 2 + > drivers/net/ethernet/intel/i40e/i40e_main.c | 57 ++++++++------ > drivers/net/ethernet/intel/i40e/i40e_nvm.c | 2 + > drivers/net/ethernet/intel/i40e/i40e_osdep.h | 59 -------------- > .../net/ethernet/intel/i40e/i40e_prototype.h | 9 ++- > drivers/net/ethernet/intel/i40e/i40e_ptp.c | 3 +- > .../net/ethernet/intel/i40e/i40e_register.h | 5 ++ > drivers/net/ethernet/intel/i40e/i40e_txrx.c | 7 +- > drivers/net/ethernet/intel/i40e/i40e_txrx.h | 1 + > .../ethernet/intel/i40e/i40e_txrx_common.h | 2 + > drivers/net/ethernet/intel/i40e/i40e_type.h | 59 +++----------- > .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 + > .../ethernet/intel/i40e/i40e_virtchnl_pf.h | 4 +- > drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 - > drivers/net/ethernet/intel/i40e/i40e_xsk.h | 4 + > include/linux/avf/virtchnl.h | 4 + > 34 files changed, 231 insertions(+), 251 deletions(-) > create mode 100644 drivers/net/ethernet/intel/i40e/i40e_debug.h > create mode 100644 drivers/net/ethernet/intel/i40e/i40e_io.h > delete mode 100644 drivers/net/ethernet/intel/i40e/i40e_osdep.h > Thank you! Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
On 9/27/2023 1:31 AM, Ivan Vecera wrote: > The series makes some house-keeping tasks on i40e driver: > > Patch 1: Removes unnecessary back pointer from i40e_hw > Patch 2: Moves I40E_MASK macro to i40e_register.h where is used > Patch 3: Refactors I40E_MDIO_CLAUSE* to use the common macro > Patch 4: Add header dependencies to <linux/avf/virtchnl.h> > Patch 5: Simplifies memory alloction functions > Patch 6: Moves mem alloc structures to i40e_alloc.h > Patch 7: Splits i40e_osdep.h to i40e_debug.h and i40e_io.h > Patch 8: Removes circular header deps, fixes and cleans headers > Patch 9: Moves DDP specific macros and structs to i40e_ddp.c > > Changes: > v2 - Fixed kdoc comment for i40e_hw_to_pf() > - Reordered patches 5 and 7-9 to make them simplier spelling: simpler Thanks for this cleanup series, the changes all seem sane. Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
On Thu, 28 Sep 2023 15:12:09 -0700 Jesse Brandeburg wrote: > On 9/27/2023 1:31 AM, Ivan Vecera wrote: > > The series makes some house-keeping tasks on i40e driver: > > > > Patch 1: Removes unnecessary back pointer from i40e_hw > > Patch 2: Moves I40E_MASK macro to i40e_register.h where is used > > Patch 3: Refactors I40E_MDIO_CLAUSE* to use the common macro > > Patch 4: Add header dependencies to <linux/avf/virtchnl.h> > > Patch 5: Simplifies memory alloction functions > > Patch 6: Moves mem alloc structures to i40e_alloc.h > > Patch 7: Splits i40e_osdep.h to i40e_debug.h and i40e_io.h > > Patch 8: Removes circular header deps, fixes and cleans headers > > Patch 9: Moves DDP specific macros and structs to i40e_ddp.c > > > > Changes: > > v2 - Fixed kdoc comment for i40e_hw_to_pf() > > - Reordered patches 5 and 7-9 to make them simplier > > spelling: simpler > > Thanks for this cleanup series, the changes all seem sane. > > Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com> I'm marking as "awaiting upstream" but feel free to ask for these to be applied directly to net-next if you prefer.