Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp271339lqt; Mon, 18 Mar 2024 07:31:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6Iw7r3NjoRhOuE0cln5VmegelohWPjBoPUtaDNhRFkAaN7bux8k69E70NTsTHP7WMT3GO4weCKNJMdoRp1o3e3u22NyIVp5sl7nQVJg== X-Google-Smtp-Source: AGHT+IGtOUCuQnCSp1zVp4X72o/CMP/krqZekev6y5ohGmWv0q0BhOCBtI0DHhgjBUqxy/NyoH+M X-Received: by 2002:a37:de12:0:b0:788:3256:15be with SMTP id h18-20020a37de12000000b00788325615bemr11861308qkj.58.1710772285519; Mon, 18 Mar 2024 07:31:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710772285; cv=pass; d=google.com; s=arc-20160816; b=z8TOdvW10XwrFzLH+6PbDbR6RxUTF+3a6ItWqwz/6eOBMJjjFoucJwzVeiDYXYtnEf pz68xos+0wUsxYxLzsdABdMIfIeCDT6SYYLu9lZXYNw8YEUD7DC7XfXI2M7ZXNFahi2R mSQ3dH4DTQ2MmkDLvShhLDAwYPTe7SJzlYsume+bZoRq0oAc491gQNNP/npTSPfmdDst jErc+v7S/FnvHoe12hCc2e7wynbmmUUW5WCWINDg5TqTHhbfAgjG5LfC7GDdTcaMqMJg 2fWzw0dWhDl/NmkzsM1K0hqdECt0PsFk0fA81IMySZ7FARe2jIflrGu2HYXNmzP9KsRm 2epQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=wMCscNMvoCJEBqT1qx48y7ZP+gNtu/wO9dEvpTchfrE=; fh=AWTYixEBn0Tmjlf+UlCfLWCgtF6SmgqpEw4IxkAAcfg=; b=o5jT2E2MRqteYZlcTlwezo6i2xdeyD3pyTEniZNYfuvP+BEHL1GlA2xpkISgMcii5H G9BiuQCYYpgpIJ6WlxYnCdeP+yQ5Q+MlNCAdmSrwygWoSXAV8hH48ezEDGh5ZdEefjGo PYUIV39tcrDM2PjOzSeQZ2JCXvJGbACFwyrp2K39ocYYqD8pRGOnm/FMGM0SDX98DMiM E5DQslEtgm1mGFwu6IHMM8rZholjCroLlp1c0uZ0dkMLI+LC/bHRBfgVcAvqVY2cS1AG ysY3t3iWueEkJpEhaUQFkKuPGDYB2/2+jpdEHvYP/Cv/ytRLriw6GtkrTfMujdxNeSqz hpJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KHAQf3L6; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-106223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l2-20020a05620a210200b00789e4b38b21si6960047qkl.431.2024.03.18.07.31.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 07:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KHAQf3L6; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-106223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 57B571C20E59 for ; Mon, 18 Mar 2024 14:31:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3641A4D9E5; Mon, 18 Mar 2024 14:31:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KHAQf3L6" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E62D58BEF for ; Mon, 18 Mar 2024 14:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710772272; cv=none; b=mVwztNCjNOnxdAaWpXaV0PFJHPkcxJz6RPMlmspltxCCQukvX8t0TYgCk49K1vif+qdT4PyY9TqpU1d4VQCjoVz0RtugiCgIq1K8r7wjdqnSi7IlYtPtuuwgmMVqySkVk5WkwNX1TFdbobu1cRcODz7WKICgMRRCZQCO5dhPXKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710772272; c=relaxed/simple; bh=9mWrQ09vJol1VCq4keVjqbPF1eVlXAbWd6Y0tZ/nWAY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XYLRkfYPHYVx6LPxRiGVuFNZhawxo6VgXavCIgS1LSQLWx5BmybqN8LeO7CGMfxzWXKdL7hjeemsFFkedtyzKfxXhrCFR86flDkmADt7BudJrqPUXCgC9coe7JC2ZlxABLwYBwZgX5pbs1EBCYm5iEY+ZA382bJ9ccqRZh/ySdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=KHAQf3L6; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710772270; 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=wMCscNMvoCJEBqT1qx48y7ZP+gNtu/wO9dEvpTchfrE=; b=KHAQf3L6j6bXaT57bH0z4Dhh/EYV0CvNyK+TCihm3FtRYF6NrmDrqH6Vv9BiBmQgooAvWU 5HIZt4JG2aBiGZpTt9HS7/3BKO1OGHu9yVDiz+QVgHR37q7Fz5gxmh1FCMec2xFOnnfytt PWKalCDdRZQPZ0IRuWvBroy+b83JdMo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-PBDka7Q1NqK3FaIdCdvZag-1; Mon, 18 Mar 2024 10:31:05 -0400 X-MC-Unique: PBDka7Q1NqK3FaIdCdvZag-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CE5E885CE41; Mon, 18 Mar 2024 14:31:04 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.224.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4DCAB111E406; Mon, 18 Mar 2024 14:31:03 +0000 (UTC) From: Ivan Vecera To: intel-wired-lan@lists.osuosl.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jesse Brandeburg , linux-kernel@vger.kernel.org (open list), netdev@vger.kernel.org (open list:NETWORKING DRIVERS), Paolo Abeni , Richard Cochran , Tony Nguyen Subject: [PATCH iwl-next 0/7] i40e: cleanups & refactors Date: Mon, 18 Mar 2024 15:30:44 +0100 Message-ID: <20240318143058.287014-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 This series do following: Patch 1 - Removes write-only flags field from i40e_veb structure and from i40e_veb_setup() parameters Patch 2 - Changes parameter of i40e_notify_client_of_l2_param_changes() and i40e_notify_client_of_netdev_close() Patch 3 - Changes parameter of i40e_detect_recover_hung() Patch 4 - Adds helper i40e_pf_get_main_vsi() to get main VSI and uses it in existing code Patch 5 - Consolidates checks whether given VSI is the main one Patch 6 - Adds helper i40e_pf_get_main_veb() to get main VEB and uses it in existing code Patch 7 - Adds helper i40e_vsi_reconfig_tc() to reconfigure TC for particular and uses it to replace existing open-coded pieces Ivan Vecera (7): i40e: Remove flags field from i40e_veb i40e: Change argument of several client notification functions i40e: Change argument of i40e_detect_recover_hung() i40e: Add helper to access main VSI i40e: Consolidate checks whether given VSI is main i40e: Add helper to access main VEB i40e: Add and use helper to reconfigure TC for given VSI drivers/net/ethernet/intel/i40e/i40e.h | 29 ++- drivers/net/ethernet/intel/i40e/i40e_client.c | 28 +-- drivers/net/ethernet/intel/i40e/i40e_ddp.c | 3 +- .../net/ethernet/intel/i40e/i40e_debugfs.c | 36 ++-- .../net/ethernet/intel/i40e/i40e_ethtool.c | 29 ++- drivers/net/ethernet/intel/i40e/i40e_main.c | 199 ++++++++++-------- drivers/net/ethernet/intel/i40e/i40e_ptp.c | 6 +- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 16 +- drivers/net/ethernet/intel/i40e/i40e_txrx.h | 2 +- .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 14 +- 10 files changed, 210 insertions(+), 152 deletions(-) -- 2.43.0