Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4467820pxf; Tue, 16 Mar 2021 14:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0g7Mlq1Kv7kYujXRZRZtcdSSmT0fhk0/26miVk1vuVVun6Yq6Sk0+f9sgNBP6K0GUqWo3 X-Received: by 2002:a17:907:ea3:: with SMTP id ho35mr32050899ejc.219.1615929998242; Tue, 16 Mar 2021 14:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615929998; cv=none; d=google.com; s=arc-20160816; b=F9gs9bVHrkKsutb2vtxzK7razSWi5KZEWGVff0/V/otkZMUhrD6loj4jpXiua5DL8e g0ewJvbJiEav5+aLhRbXQYqvt5OrFoSBkyNpzCSwXONXqqo9NLs4y3rucV197LbbdPKE mm2GDa7BUrOvEUfX7iNxUOuhYf7Sl9ncSODOL2knDqGQqfRf/omIMNkIu1FC5FpR9WTG tK1XIedNQ0/V8kbqaIKqGqDzZvuQFiENPxqtjF88VkcmJm+ssSm1XMIWn1K449wOmyZE zOxjK3U1+fSN0/KDLfloq9JOxaXYw90/GopT5czil9W8GPzYGp/NAIIp1XN9ZwsLF/8I eArw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zJEUjMAZbUZTrvJGllbd3ZUhA6a8gOt9krX0mwjhfvE=; b=iQxwTzJK4Nxz836a/5x3lDw4Q9aEdHyxOR4BHJ01y5kkegM64Q4PovGVrE2cSaYqUS nQ8aIQOIlaHZOXzY9an9rRNFmVNHvqhwORglaRDpcEVfaaByqfMLXkxtbehUa4HwzgLa tqikziO54jcDmgIXFNcKMlQffe2k0/PKKPDVF6ujre4Lb0xGK+d9Vads/tUf8mYUZJlo /cCbyaEPGOqoPZhNlKWOEs/337OrsZZxV4UxhLtpqaUqrEQ+bvmErYwt/yi5m1/+ytPE J8PLk52eTuAp1nA1dJaMVY3qxsCsLO5k6LaRhKEG0Ez1SFkuoXGUYUItN8tbTkSLVeql zlFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yv8zJVDM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si14019174ejg.130.2021.03.16.14.26.16; Tue, 16 Mar 2021 14:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yv8zJVDM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbhCPU1p (ORCPT + 99 others); Tue, 16 Mar 2021 16:27:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:56092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbhCPU1L (ORCPT ); Tue, 16 Mar 2021 16:27:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B831A64D9D; Tue, 16 Mar 2021 20:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615926431; bh=a/wKNvnQeClTwwX3Zb1sG+qaYu9jbLv7DBvliGxU3DU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Yv8zJVDMP4Z59fDbse6DO0bUJh58EAdgk+fpz1cCqfAX7T7wyEAINSMCqnfZQtMs3 wW+vxgvoRgaX8stUOeAO/rvxAPtrYlYHcRjGHimsuiVspW6Mtcqqfy61Vep2dRsHhD 0z7kuFG8Oe77b0Gjo57Tzo5m7CprlvWhrROljmJEY9IMmEhHha8cexdoy+3qySnzW0 lPUv2u7nWCVFNYPYcgjqEzxBn+OBkQbLi+SOHj2aWsD6cIskLOx2MUZKovfXBz5jA7 R9SwC+CvrU6SOw4bQx7KpMWCwVS9EZF0fzvLR26O7yf+3kDHcCk1gSgdKwWLVFrZv2 02XmaKVBdVXgw== Date: Tue, 16 Mar 2021 13:27:09 -0700 From: Jakub Kicinski To: sundeep subbaraya Cc: Hariprasad Kelam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, David Miller , Sunil Kovvuri Goutham , lcherian@marvell.com, Geetha sowjanya , jerinj@marvell.com, Subbaraya Sundeep Subject: Re: [net PATCH 3/9] octeontx2-af: Do not allocate memory for devlink private Message-ID: <20210316132709.6b55bcf4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <1615886833-71688-1-git-send-email-hkelam@marvell.com> <1615886833-71688-4-git-send-email-hkelam@marvell.com> <20210316100432.666d9bd5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Mar 2021 23:33:40 +0530 sundeep subbaraya wrote: > On Tue, Mar 16, 2021 at 10:53 PM Jakub Kicinski wrote: > > > > On Tue, 16 Mar 2021 14:57:07 +0530 Hariprasad Kelam wrote: > > > From: Subbaraya Sundeep > > > > > > Memory for driver private structure rvu_devlink is > > > also allocated during devlink_alloc. Hence use > > > the allocated memory by devlink_alloc and access it > > > by devlink_priv call. > > > > > > Fixes: fae06da4("octeontx2-af: Add devlink suppoort to af driver") > > > Signed-off-by: Subbaraya Sundeep > > > Signed-off-by: Hariprasad Kelam > > > Signed-off-by: Sunil Kovvuri Goutham > > > > Does it fix any bug? Looks like a coding improvement. > > Without this we cannot fetch our private struct 'rvu_devlink' from any > of the functions in devlink_ops which may get added in future. "which may get added in future" does not sound like it's fixing an existing problem to me :( If you have particular case where the existing setup is problematic please describe it in more detail, or mention what other fix depends on this patch. Otherwise sending this one patch for net-next would be better IMHO.