Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1188123rdh; Fri, 24 Nov 2023 07:04:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4FluMKWUVebdRew3rfhgpAKV7W7jvBFG4cfcPYixqkK7R3DGIOeATuV7hxZwWqSl1jsfv X-Received: by 2002:a05:6808:3024:b0:3b8:3fbe:5a0c with SMTP id ay36-20020a056808302400b003b83fbe5a0cmr3694081oib.11.1700838252454; Fri, 24 Nov 2023 07:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700838252; cv=none; d=google.com; s=arc-20160816; b=BcIIcVb20j6XVyBKkackWkKAAY+z/N4h6DUl+sGyK5tTMMP8rmXUGxGkCEh3cYr77U VckcN/YbpTJw4WdjlhG301PfluVtEngWrz1WgmhPFKRfrkw2FvJBaqNHZS9HbuYVf59p fLe+Usk+u93NCjAmZgoJoIqxevgLvK0mrs8apdDzm6YPmme7LnfMMigz9Jiru/aQ68pE x6yGZHYdls5ilcGWVBhLzguDRZOB72HNnD+KJ1fs/Aw9JxhhTBY9UDzbgz17LBOE7CN+ GIwbCpXFn35uKbfzuDYbOReOgXIYa1/dxGTdeGLueMoFhe6pS/GseE2xYfUVpW9HiHLs w2NA== 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=0XJZJPBiFQgSSe+XxCMWeD8kd9qiENSYyfcir+QL/Yw=; fh=Ire9X/f+poHf+LCGYaDugOGHU/myEYCp7lvBMoNWOik=; b=j53i+Ibsn2HxlExVgt0mPPCZPIj/sbhK/h6NU99a6o1PvWbB+bCPws54vMTz2xU1al 7NC+a+Ir0vBDdBGJiEthXBJxnoY/axOkUqEwdr6LIzO/xOHp3xiq/kDT1pAVEBgDq94h 3abRhlGD20+5C8lIRSB+2bmvNVmxiAatCPSe31ueNlZCpa/B2nkWgYJ2e7I7KMlvLCQv Gva2aQElt9WujUEoTQOjuCVKwnc/55G+UnO979JWNajarq9Yu+ktOlqdoNE+AR0uJf+h H7SWwec6w4j4kD/HoPFLpzAzjlTHi2Ad0JC/eJA63CxlmPmAzgLnGiF4dlQWRZSMnND+ HMhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZqRsm4Tj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bk9-20020a0568081a0900b003b84522b9a3si1490798oib.68.2023.11.24.07.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:04:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZqRsm4Tj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 6755D81E5E5A; Fri, 24 Nov 2023 07:04:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345461AbjKXPDn (ORCPT + 99 others); Fri, 24 Nov 2023 10:03:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345384AbjKXPDm (ORCPT ); Fri, 24 Nov 2023 10:03:42 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F8BBD72 for ; Fri, 24 Nov 2023 07:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700838228; 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=0XJZJPBiFQgSSe+XxCMWeD8kd9qiENSYyfcir+QL/Yw=; b=ZqRsm4TjKbz7wDF4jhZubkBINCncZkHRvX5E2POK8vUh4os92P9VXPznpwtW/ddDyWwwWV WYjo6hFqKVlHQ1OVm1dQ5kk79QLOFk4VJbO14dNPKe0vdptLz6FwwbEcE2mFHG/W7Ywj6P h7/lg2HQiJiaFOuZkT7gBFxnOXaZJO0= 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-651-YwIFWucYO1i2thUxLoGzug-1; Fri, 24 Nov 2023 10:03:47 -0500 X-MC-Unique: YwIFWucYO1i2thUxLoGzug-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (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 7F8B33C01E0B; Fri, 24 Nov 2023 15:03:46 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.226.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 40A7B40C6EB9; Fri, 24 Nov 2023 15:03:44 +0000 (UTC) From: Ivan Vecera To: intel-wired-lan@lists.osuosl.org Cc: Jesse Brandeburg , Tony Nguyen , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, Jacob Keller , Wojciech Drewek , Simon Horman , mschmidt@redhat.com, netdev@vger.kernel.org Subject: [PATCH iwl-next v5 0/5] i40e: Simplify VSI and VEB handling Date: Fri, 24 Nov 2023 16:03:38 +0100 Message-ID: <20231124150343.81520-1-ivecera@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 24 Nov 2023 07:04:07 -0800 (PST) The series simplifies handling of VSIs and VEBs by introducing for-each iterating macros, 'find' helper functions. Also removes the VEB recursion because the VEBs cannot have sub-VEBs according datasheet and fixes the support for floating VEBs. The series content: Patch 1 - Uses existing helper function for find FDIR VSI instead of loop Patch 2 - Adds and uses macros to iterate VSI and VEB arrays Patch 3 - Adds 2 helper functions to find VSIs and VEBs by their SEID Patch 4 - Fixes broken support for floating VEBs Patch 5 - Removes VEB recursion and simplifies VEB handling Changelog: v1->v2 - small correction in patch 4 description - changed helper names in patch 3 v2->v3 - correct patch files (v2 was broken) v3->v4 - added kdoc stuff - fixed wrong check in i40e_ndo_bridge_getlink() v4->v5 - fixed VSI/VEB interation macros Ivan Vecera (5): i40e: Use existing helper to find flow director VSI i40e: Introduce and use macros for iterating VSIs and VEBs i40e: Add helpers to find VSI and VEB by SEID and use them i40e: Fix broken support for floating VEBs i40e: Remove VEB recursion drivers/net/ethernet/intel/i40e/i40e.h | 93 ++- drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c | 10 +- .../net/ethernet/intel/i40e/i40e_debugfs.c | 97 ++- drivers/net/ethernet/intel/i40e/i40e_main.c | 563 ++++++++---------- 4 files changed, 373 insertions(+), 390 deletions(-) -- 2.41.0