Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4315498pxf; Tue, 16 Mar 2021 10:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPXRn/eMBeiCHdfC/wY0q104yw5m9ftX300NzXolejOy6jGCCM7fHLILR0MaQ8DIhws/p+ X-Received: by 2002:a17:906:1f93:: with SMTP id t19mr31578394ejr.443.1615915424121; Tue, 16 Mar 2021 10:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615915424; cv=none; d=google.com; s=arc-20160816; b=VwjKUAGc3lSTWhP3Qwd0YqjxVUqOLa9C1ydr2iyDWf3ONRsYm3JZFVuZoBHrGTfopa h4qEGtD88vOJxGFCa1gQPZTssQDTq+++8vFIDXbN4D+Mr1qEvIG33W2s6yvr062fx1g4 d5EDlJtajKXFlusXHcKOshyOxKPdjEZHPOgm0/PzcZM1qboPrjSOcBBwcJv8aOLNpQLi pM4Yr5Mo6HawocOmxqj6Yd0/sEirrjgXzrDo6cVhxEWtJKKEdtJstxgZkhWrF+HHaOaa f+2fR1C+bPWtq6jHz7E9zp21fDzP2msXznKpZypfTmoBXoEgerhWd0z2s6j1Fog3ggIN jmqQ== 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=u+4wQoEPmilEsnOqEZJiLeUndfRhl2mTYlDnT9OeXsg=; b=Rjo7SQsv2qqQ4EV5nFs9nqD2iUNIIDjeIjxysQtiQ9qbde4T6gTMSrkM03N7cPPKbi 1V2An44UckP6KKQKBPfTgnnaA0QvcSB+gPKbErkGlHEQGfhuOp17N2nt8c/CPHClBk+8 acyq5/MR49CiugbF8qFmKa3rY4l1KbSPkvIS0T+2H0795QqjVgW63hC5FoFTXlsxY5+P O0LP3mcgt+pjaIdpt4CnMj8berBLd94s81o48y1avjbdBTKAjhUYigTHz856H/0CguH3 3EUAHuKJbjAGEm0Wn3o4Lryn9u87jK9GhsUGlZ8sjoIpWtdB6/8poY9REN5vXT/seINh IRbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AEejnfsL; 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 h28si11263247edj.546.2021.03.16.10.23.21; Tue, 16 Mar 2021 10:23:44 -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=AEejnfsL; 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 S239032AbhCPRF1 (ORCPT + 99 others); Tue, 16 Mar 2021 13:05:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:50728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239071AbhCPREf (ORCPT ); Tue, 16 Mar 2021 13:04:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 612A36507D; Tue, 16 Mar 2021 17:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615914273; bh=gta9gdbu5EI2d+VUk3ax/ykdJFBtQRukMiis0SapmV8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AEejnfsL27HvPyEfbfuOl68ZmRGSLCfiT6ELOdW6f/Ritjf92635rd8fwHLUxTEo2 +V8M4S73sYFOrsdwAYyMJUB8bXvUaychY+aGYF6rT5jqlqGiX7fStL+azXplg7rYJ1 qtOwVgw4qdRx8JFWANMSihlddhOctia3ViqHHIfMpQdNA4LK4ZYXbAgnEjivSQ8MHz WXNkJyeHoakQdriGUZ3ckk96HBvcVXmy0fMo8AMm44UmcmO0kMGlWdYMrIgXYofZpp WA/gBG7tnJhXm2T8rPh7shOFHnqZqZicHLkmBJeZXbtmoWj3d/kmIHjkIW2VXYwPTD gy9vKWOzTZ+pw== Date: Tue, 16 Mar 2021 10:04:32 -0700 From: Jakub Kicinski To: Hariprasad Kelam Cc: , , , , , , , Subject: Re: [net PATCH 3/9] octeontx2-af: Do not allocate memory for devlink private Message-ID: <20210316100432.666d9bd5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1615886833-71688-4-git-send-email-hkelam@marvell.com> References: <1615886833-71688-1-git-send-email-hkelam@marvell.com> <1615886833-71688-4-git-send-email-hkelam@marvell.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 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.