Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp138061lqg; Fri, 26 Apr 2024 10:50:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxHx7fzWo8YNCNpp/NfhOzgIAU6NLlPa3qxBZQfJw/DszdqJ2k7BXBuQsZvHhivlrMu0hWvmWJ0cNAoJ5d0gb0xwWEXl3YGUqPmlCu9Q== X-Google-Smtp-Source: AGHT+IGa86EJkWDwjnx15tjCOBLklZL4QAZd0Dv180ie5Zebhzgls2sAtwthTD91DTDXCnVKKa3M X-Received: by 2002:a17:906:68e:b0:a55:b846:9a1d with SMTP id u14-20020a170906068e00b00a55b8469a1dmr2054274ejb.50.1714153820000; Fri, 26 Apr 2024 10:50:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714153819; cv=pass; d=google.com; s=arc-20160816; b=fqbf/JwXZfY9AehaTAmQZXB70Kihwz8DXqt1O2ZiA58rHZgZrzuOEGDIdY2oYzVXZm wCxRZYpeMq7LX2jeHTV/VUTMGlbidrTcnux8Wwwh8fd1yU9xeQOL8hdCayfIKyNnKQy5 tZRb4+jql1/JcEszuZAJB1+GdT3N8WmbTFHneSWJiAQOWKKOXXroOppFlmvGP7iX2HLs Jwwb717uPT+s3aLMsmEhEfNKOcr40CutwxwKwyOeisNjcDayABP+hi2w6/2p3qI4LtJX dc1puHGI6LZxw9/QSLJdrQvkLXbGHcXMWbpHXLMbZtbysmpan+nNJ2mUmnR8gScObv85 pzww== 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=DSsFam8q16fFWG0YVf99TEf4J1vcX6147cOAw+eBsbU=; fh=mifipvWMOEeieNHSfNjdxIQRha5H6z7mg23qMupT2PY=; b=ATty/wedCfidR4nrFI6SK3Tov8r8xPuBWbI4iH8OMr+eClIjXrI1zl2fMsL1cEKZg/ ZD3k7flrNu+9Xdl7lAf5QmMjSq8OHvqzkwnwVAvo8xHj0ggWoWZsQrdNJmQZGEVT2V34 FKR9aFXVXf6wIG2FxVCIhf/ESBkn2+EnZW9C0MwTl8hFPeB+aaIOtGZTJWuFhctNHYJH 4K1Yw9CWpv/SdzhJDenD0wsgv/Tux+1lovEQJVWnPRGgEp20j2AfKSExqy4bNNr2L2v5 /gQypo/jgh+ICy5t15cFJmF6uVRIgC3y8fBq6vNjK0VsTyKVpqlc/GwngNt/rsxQMrN3 0YMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cIG8nP2R; 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-160515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160515-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f6-20020a170906560600b00a51df3e9f97si11199847ejq.183.2024.04.26.10.50.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 10:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cIG8nP2R; 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-160515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160515-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B4F631F22BAA for ; Fri, 26 Apr 2024 17:50:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 975F516DEA3; Fri, 26 Apr 2024 17:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cIG8nP2R" 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 5211916C854 for ; Fri, 26 Apr 2024 17:49:59 +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=1714153800; cv=none; b=FHUCov5flGQMkEyfFZXmZDeiq8BqZmTWeQNHFeHh7fs0a2xpQO155lc1INYu63g61WByCXn9GNAM4wAk2W/h6lItCRB58B8mAzgVYpCjelr3CVUeS8kd+PpRmd2XYJS2IVv6E0oUfxKFe9ZqlOQRQ+OKbxAZBNwXsCHveBOoAnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714153800; c=relaxed/simple; bh=QY9I/IClCbyOHqcq8vduJfehIPPhZrEklVOXoSEUKAA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ozgqFcdEcoUu4jpwLTuh/f+aGMl4bcA22rfPOt6WWY/zvIflIqQrrVI/Q3Gp9OiMZuH4qcvhcPLD+cUZVK5T4XMrqfF1mYZ96PYvPvQy4V06N2i04XCV4XPBaghR62EvXLfWtzzOFoyrVn9E/Q2gfzOOCqRqKFYUgd+4d0mT6gI= 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=cIG8nP2R; 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=1714153798; 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=DSsFam8q16fFWG0YVf99TEf4J1vcX6147cOAw+eBsbU=; b=cIG8nP2RAjbK/qKGUZqB6+fONjP1rlLeGaZFYohoONZ/7FayA+qTclZmmLY8SNBzDtLU9u zRJvfeJdJXB7WVzeFeZFKTr0bbi3VE3AfaMII0uyETO4uU4HO0A4x1Uxc7oD2DZsFFPAK0 XNVXobOGT8pblEKJVDyv5opczai13W8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-86-ikzVhdqMPtumCmdrnPl1zg-1; Fri, 26 Apr 2024 13:49:56 -0400 X-MC-Unique: ikzVhdqMPtumCmdrnPl1zg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 4C9B03C3D0D3; Fri, 26 Apr 2024 17:49:56 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.225.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 96AE3C15771; Fri, 26 Apr 2024 17:49:54 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , intel-wired-lan@lists.osuosl.org (moderated list:INTEL ETHERNET DRIVERS), Jakub Kicinski , Jesse Brandeburg , linux-kernel@vger.kernel.org (open list), Paolo Abeni , Richard Cochran , Tony Nguyen Subject: [PATCH net-next v3 0/7] i40e: cleanups & refactors Date: Fri, 26 Apr 2024 19:49:39 +0200 Message-ID: <20240426174953.208591-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.8 This series do following: Patch 1 - Removes write-only flags field from i40e_veb structure and from i40e_veb_setup() parameters Patch 2 - Refactors parameter of i40e_notify_client_of_l2_param_changes() and i40e_notify_client_of_netdev_close() Patch 3 - Refactors 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 Note that this series should go directly to net-next as the IWL review and validation were already done. Changes since v2: - resubmitted per Tony's request (no new kdoc errors were found) - added existing reviewed-by and tested-by tags Changes since v1: - adjusted titles for patches 2 & 3 Ivan Vecera (8): i40e: Remove flags field from i40e_veb i40e: Refactor argument of several client notification functions i40e: Refactor 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 *** BLURB HERE *** Ivan Vecera (7): i40e: Remove flags field from i40e_veb i40e: Refactor argument of several client notification functions i40e: Refactor 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.2