Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp250755lqa; Sat, 27 Apr 2024 00:26:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAcTanhvDs97uR5bLzhSvEq2ANGnFOeggxdemu8dmZiXAGtHTixChzWzgGuo4WPG1Uw9hUUhJWEjkIJYL/Vtycg+yI8M0XYFNSC3lGBA== X-Google-Smtp-Source: AGHT+IEiPS5eHY/pXb0M1aDfN45AYU9xsBvum/y9dpnbZrrivcDU+pgHDBXsSNDdPAYLX7yPxNRA X-Received: by 2002:a05:622a:507:b0:436:4532:334a with SMTP id l7-20020a05622a050700b004364532334amr5126482qtx.44.1714202793958; Sat, 27 Apr 2024 00:26:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714202793; cv=pass; d=google.com; s=arc-20160816; b=ZW8mgmR5EMAkbrZLLcyvfZLFEnzBYiID79NTE2TM5t8ByTWvyoJuHo/xVWONWREtNZ 5OArg84EgyoFS7f5gA0tVigBHsvbuh+pz9nW4cMOMSooHf/ZXAtTSFTIW87UjNqbFs5M Scxmtjc1xYFfvmYvnKH4eGI0D2+SZMiqV7D6jCqMvLYTsKC6NAEXiX62U/LrHaLrIz8m LcWq0yI1caImnOb/KvTh/TTpoQILXq/XTDtF5kbE4wiFZymND5rXe0XyonVtQdHgoBBj 5kFbQDTMxbQvWK/kqeThTMATVDxTGNd9eAPOCYQ+Q9EWEdiBExVhZxJpkfN4UAn4DyHH bcgw== 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=oU0PI/3hFSKCw5O/amXoTchq7YWCXQ97GsK4JttEy+E=; fh=mifipvWMOEeieNHSfNjdxIQRha5H6z7mg23qMupT2PY=; b=mS2QYzTJ/GjSk+h0/oFTQl+I+KwCwfqbN+clhVDoMYEDeXcFAVIlj61JfSG7IwYlzp T1SRBa+lB41ldLHPtqZI6rUZnN92CN0ZMd1+Kiri8SKWmW1JiuSWNVy4vTH46t4v5oVQ NrzTjhEQRA8GbsiVNvlNNuBaBfWa7x0QEqfv/qSCkJVxmdMAyYH+zLluc8uhLzNzD9iK s3T6Z9C7liWNFWgumkd79xRIHWLrsJc1WDc5jKxlAoCp8v5carLbhpTM3aLcCF0X46Ci nbNIhijeCkN9PGavP/vAz1hI+q/iB2EDGcWYlNtTd/iCJ7P3EHP483gLBI5/sbuKgSIr Q3Hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="SVx/1IDK"; 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-160937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160937-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 s13-20020a05622a1a8d00b0043780c6bfd7si22929296qtc.182.2024.04.27.00.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 00:26:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160937-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="SVx/1IDK"; 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-160937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160937-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 A83861C21E92 for ; Sat, 27 Apr 2024 07:26:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2543E4207F; Sat, 27 Apr 2024 07:26:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SVx/1IDK" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 EB3643BB22 for ; Sat, 27 Apr 2024 07:26:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714202787; cv=none; b=tvli8us8mfFLDm6duhhalteLO2+jYVfoHpsPxw5J+TbsOA0miwBoL/bIm2u3/7WUYf9e9Z46WjNv5qElo4/hSwj0wEA8eYaEMKuVuXc54PT00YdCRO19WrbO7uN4RHPD/1hLd7OVXw84sVgraW3P3JhTrAVYgbp8On8QrlaRPvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714202787; c=relaxed/simple; bh=rfBP2Pzpfb7knll4pClmVsouTJ4TG5aRphXSlSFXA6s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OLlmD0QOoKeERa6zOK3JQLeqwnHK6ealKD9aALbgymQ2egK9wnDYK2jxGKN4STlBfVJfw5+udN6RIRIu8gXqZ+3BWutajINDoILMymXdE1eAlxqlrqawwWMVRvwDhyCW2sPFL/m8Pk5bKtxZMEI+guOKIXznF2rA2x8MHkuqTwE= 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=SVx/1IDK; arc=none smtp.client-ip=170.10.129.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=1714202784; 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=oU0PI/3hFSKCw5O/amXoTchq7YWCXQ97GsK4JttEy+E=; b=SVx/1IDKpYjAQRi/TXQNOGzfeZddIfP/LvQsil9XDCeyZj3jNqgrCnYO2lcIKea6zTiaVV HHOjSCMf3zLhZ/63HrVg5yzE7OVOY8BYvkk1pa21pNN5tMGykts4+lYb9gWXabU8OeZ37p ZLzDy3LnZ7zgOZmxo9hP+VfW0bEYSms= 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-595-TseoSWE1NmyCFPqcAuhqhw-1; Sat, 27 Apr 2024 03:26:19 -0400 X-MC-Unique: TseoSWE1NmyCFPqcAuhqhw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 8FD0218065AA; Sat, 27 Apr 2024 07:26:18 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.225.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id B4CA240F17B; Sat, 27 Apr 2024 07:26:16 +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 v4 0/7] i40e: cleanups & refactors Date: Sat, 27 Apr 2024 09:26:01 +0200 Message-ID: <20240427072615.226151-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.10 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 v3: - fixed new kdoc warnings 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 (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 | 200 ++++++++++-------- 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, 211 insertions(+), 152 deletions(-) -- 2.43.2