Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2122562rdb; Sun, 3 Dec 2023 03:42:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IESpVxwbWJtKDSNj0p7g3NVsA1zeixQbfeDnxzPW6e7alFr24wjjvV8IBT6ChIL0OCr1Huk X-Received: by 2002:a92:d78c:0:b0:35a:fad3:2b2a with SMTP id d12-20020a92d78c000000b0035afad32b2amr4058432iln.12.1701603749416; Sun, 03 Dec 2023 03:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701603749; cv=none; d=google.com; s=arc-20160816; b=nJHCAdwvHk/UPsMCnNh+ekhaHzVnF1FzbPBW/asXQPcgn4ol/CZFMZBDZplUtewqb/ qgln/y7PYSOMyLkHe1qa5GVsnyUZzJ3qBt0JPi5ll0+Qymix2ch7OHd3SGbHF4EIkxIe 9DVgor25owIZ3TZ4gBTH3v/7r434gH1x8ORoSfufslfC4ef6nvZvV2DgLA/8zmr2rJgT QpTIcuag7FTFwkgENaweSE1m9CAmsggVy8j+JfdwOtpRQV7KashN1+ETDWg6do/7M7Te fnWwAQzkoicM1AGF67cWWM+6OPk9TjGrFQFsxP8tERmXr7WA8uHGyYRMp5ieli7olnEO 06Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tdnXKdqxpE7BsnLwDmJQX9fgD+dPgD17xtn3xWkiX2k=; fh=IAPFg3fxb4VHAlUfZn03k+44DA/lwAi5wTkOgalqACY=; b=t+DR53RUPLBhhyTNj1Zq3m8MmMctnhDPH9DZakVvJNubByUZzkU0QG54ChURig493w tWqDEM/bPVjFVr3Unift4cWHE6nWpCiWHNc9WzIBMmdvMibBY9gRCo9vk2B/tWGAnnCR x92RHjNrgxYL9gE3loHs3SELeIwf9NVj9RVwuVHM5jXIE/I1WZVRe7T20UHQyc9gzmmP x0e3py9pLVViSqt+uRxF0ozo462z5ptG55gfK0TQOi1n2cpCjwEgnO3ay0AkFaQNbGpn Q5oMkrV1UBDVwXVkivwkw0EP78h+OdxqS6iPPgt5qEqDbey8+Qx4lyvF3z7lqPnn1bSn ia4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qjYMVFOP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f12-20020a170902ce8c00b001cf579f758asi6447179plg.437.2023.12.03.03.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 03:42:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qjYMVFOP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4F4C68097881; Sun, 3 Dec 2023 03:42:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233400AbjLCLmC (ORCPT + 99 others); Sun, 3 Dec 2023 06:42:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233393AbjLCLmB (ORCPT ); Sun, 3 Dec 2023 06:42:01 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A59E114 for ; Sun, 3 Dec 2023 03:42:07 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2ED5C433C9; Sun, 3 Dec 2023 11:42:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701603727; bh=yyB6miuV3QDfgKnJCr8YxHHVQ4FeW1IM6trz2iKW220=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qjYMVFOPP3usK2DsxR2PhtHpHYZ4WGTs6XUpZV3XMQXpqDA+9QKDyqaTkSbXkxBJ+ WxygQf25Gdc2nlfqNmH26ZaPLuXlyfEA+jast5XjwuUaV2P/xGRMeMBJUPTSwsJnni YdFTs03N9MelOH7/scZz96jkvHYSCEqTXMcMFTHHM27y5O7Y52E3weMUVkiC0APDdn CO5oDRYWl0yzhVG2qSdgMuE1UQGGX0J7nkNYG+hxjJ54vq5TW7L7e26nJqLBWOdZue RBZfxMPrTVaQna3U3XoG8FQ1LBUG0OoEQC4o3sQ0fn9hnpvu476fRIFWhEJcOqkVb9 iOkAWwSvm5LnQ== Date: Sun, 3 Dec 2023 11:41:59 +0000 From: Simon Horman To: Ivan Vecera Cc: intel-wired-lan@lists.osuosl.org, Jesse Brandeburg , Tony Nguyen , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, Jacob Keller , Wojciech Drewek , mschmidt@redhat.com, netdev@vger.kernel.org Subject: Re: [PATCH v5 3/5] i40e: Add helpers to find VSI and VEB by SEID and use them Message-ID: <20231203114159.GH50400@kernel.org> References: <20231124150343.81520-1-ivecera@redhat.com> <20231124150343.81520-4-ivecera@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231124150343.81520-4-ivecera@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 03 Dec 2023 03:42:28 -0800 (PST) On Fri, Nov 24, 2023 at 04:03:41PM +0100, Ivan Vecera wrote: > Add two helpers i40e_(veb|vsi)_get_by_seid() to find corresponding > VEB or VSI by their SEID value and use these helpers to replace > existing open-coded loops. > > Reviewed-by: Wojciech Drewek > Signed-off-by: Ivan Vecera Reviewed-by: Simon Horman