Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp643355lqp; Wed, 12 Jun 2024 11:40:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHp1IIknGr74CspuZchyDZu0u9OJJPkSJUey06Pqg9tb4A43kGDQ5Tz9CLr82NcwuT/eIgYbNXj7xIoDHL05ek5DEVb7oFt1x8jtNHIQ== X-Google-Smtp-Source: AGHT+IG5nM/PdxF2nvkHbWYwAQJDaUJx662nc6pEy7ep/mIvBEubKDrCgnZMyLUPGXHHkRyBQkwZ X-Received: by 2002:a17:90a:408e:b0:2bd:f3dc:62d0 with SMTP id 98e67ed59e1d1-2c4a76d7d98mr2639098a91.37.1718217608295; Wed, 12 Jun 2024 11:40:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718217608; cv=pass; d=google.com; s=arc-20160816; b=kBJrtit6dOegL+a9N4mNH1bNv2HIsvAPbYlSqM+xxLtYq9m9uJB9zvZN04K2WEbMc9 xTWSSHru2Xur4OyXm9FwwgqU/l7X65MvGb3tGpmOHpNkZvrk4NmEARdXh7ToJrAAAHh0 FmYLTmlpkbDuFM5R59wWNXwAYE6s89ah1biwHRTuk9YEhy6mbi07l1lOhNlGfQhV3VLl Y6XqUyDyCuVusjblruiQTMpYzZSBlW87v31sWrK3M21l5V8mOlwfFeFWpmyvBmqluUWF d7c+9LdfFVD+ckuWy1aAStK5HVg9+S6QzXX+GmbQf4fLsE0baUmtwk6qiHzef5x9s0Yk i44Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8jfCBA2eWMBZJcfm3hmruXPGOuRQL85r3oTiyHPIrJ0=; fh=doj3Ze2fWFprT2s+4L9a1fxM5oUddHZQlyTRykLIcAk=; b=ySG25qRxBUDWtW096o/TlBg7xQCVMo3d4vGprXgSlK3uWqe5rs4wGgm2+X3AMfrDsX NaSPjv39DAP2c0i7r8N34mRYbXrlZDPvXc8l/c0d/laHNLHeKA6DKaBYIP58tKPjAL0d H7Cuxr4lq7CMv+9N6M5p+bCuaLpFglO80mlrCDalRIntROTUBbJ0ymjzp4vykIwmc5tu uT3Eb3MpgqOgAhbLqrnLU4UMQvbii7xa6A5XlEityBcQO3RS6PbHL+XQT059gg/amGcu Y58QMWphce5dhqpVgPaQS7f7bixwkvOhllD+fGEi3HNgBO99/+tdkTXjK4SCMLgBrqAp wM9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pcN1LmqV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a7668260si1951601a91.185.2024.06.12.11.40.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 11:40:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pcN1LmqV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1CED6B2224F for ; Wed, 12 Jun 2024 18:31:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92B194AEEA; Wed, 12 Jun 2024 18:30:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pcN1LmqV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AB3632904; Wed, 12 Jun 2024 18:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217056; cv=none; b=QMpC2AnTN94zW2MQLUZIBZCdIOYlWjeP/tJwCQdmwHt22HiZNdkLFDWn0sba0hbjIXC4AqTubKTS6Inaix5+xZWYsUHGqfXawmeTQg7Icjh/S4ZxAL+b75gBqxUFUcSZ98dPtbJkhQneM8kByNe1+S8nmPwEemriTXGL4dv8Q2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217056; c=relaxed/simple; bh=e3QzXrAaU67B/41FElb0xb11by+jePMPQ9A+1cBeILs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rDAKUX/4gGxufVdPuVUrMYOXA0N+h6jWw9JdwbF3w5uAotapO8h5BWuyZcYKGgX3+9V87oaRHUTXPtt4Xo08mPPlJ0UM2VCe9hbPkOC/DCiqJ5ZLW2T/mki/+WBKUVkAqOCb9cxntBQCHNt2EHU6j04egvL89C//Z6bdxxkVCIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pcN1LmqV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA306C116B1; Wed, 12 Jun 2024 18:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718217056; bh=e3QzXrAaU67B/41FElb0xb11by+jePMPQ9A+1cBeILs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pcN1LmqVDCujeGcsZoS9HdgBzlkuVNCDq07GI+9cpH8K5pC1eVzYA0EJ1U+5Us3S6 8XS6xBsIILjM86ioB0/3ul9dJdGy3rwr7nHauYBjgGCgr8BPYWtxh3zJgc1oZTxbaY uUuFBemjxteVBFqOxC30bM9JizYIgAFgmgfj9fUE+C5nY0PYGVpMzFcw+C3fvvr+hz +6oKQKeBrB2U3zhHGXnsLjgs9PCMOHkX4PdmiR41VkKu5Jez/H/cOWI+tXr3B/GXkc LMpXgSRf+g6u/4EfHaLitBTwNO+7XigGtjyoYl5WY/+f9wL/CDHIqaI5Mrc9zDgwFF o2pqi914O6sqw== Date: Wed, 12 Jun 2024 21:30:51 +0300 From: Leon Romanovsky To: Jakub Kicinski Cc: Shradha Gupta , linux-hardening@vger.kernel.org, netdev@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Colin Ian King , Ahmed Zaki , Pavan Chebbi , Souradeep Chakrabarti , Konstantin Taranov , Kees Cook , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Dexuan Cui , Wei Liu , Haiyang Zhang , "K. Y. Srinivasan" , Jason Gunthorpe , Long Li , Shradha Gupta Subject: Re: [PATCH net-next v4] net: mana: Allow variable size indirection table Message-ID: <20240612183051.GE4966@unreal> References: <1718015319-9609-1-git-send-email-shradhagupta@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1718015319-9609-1-git-send-email-shradhagupta@linux.microsoft.com> On Mon, Jun 10, 2024 at 03:28:39AM -0700, Shradha Gupta wrote: > Allow variable size indirection table allocation in MANA instead > of using a constant value MANA_INDIRECT_TABLE_SIZE. > The size is now derived from the MANA_QUERY_VPORT_CONFIG and the > indirection table is allocated dynamically. > > Signed-off-by: Shradha Gupta > Reviewed-by: Dexuan Cui > Reviewed-by: Haiyang Zhang > --- > Changes in v4: > * Skip NULLify after free > * Log proper errors in mana_probe() if mana_attach(), mana_probe_port() > fails > * Implement mana_cleanup_indir_table() to avoid code duplication. > > Changes in v3: > * Fixed the memory leak(save_table) in mana_set_rxfh() > > Changes in v2: > * Rebased to latest net-next tree > * Rearranged cleanup code in mana_probe_port to avoid extra operations > --- > drivers/infiniband/hw/mana/qp.c | 10 +-- > drivers/net/ethernet/microsoft/mana/mana_en.c | 85 ++++++++++++++++--- > .../ethernet/microsoft/mana/mana_ethtool.c | 27 ++++-- > include/net/mana/gdma.h | 4 +- > include/net/mana/mana.h | 9 +- > 5 files changed, 104 insertions(+), 31 deletions(-) Hi Jakub, Like we talked, I created new shared branch for this patch: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/log/?h=mana-shared Because it took time, the base of this branch is v6.10-rc3 as I'm eager to get the commit c9d52fb313d3 ("PCI: Revert the cfg_access_lock lockdep mechanism") from Linus's master, and this shared patch gives me the reason to pull the fix. I see that your net-next didn't get -rc3 tag yet, so please pull it after you advance net-next. After that I'll do the same in RDMA tree. Thanks