From: Jakub Kicinski <kuba@kernel.org>
To: Breno Leitao <leitao@debian.org>
Cc: Sunil Goutham <sgoutham@marvell.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
horms@kernel.org,
linux-arm-kernel@lists.infradead.org (moderated list:ARM/CAVIUM
THUNDER NETWORK DRIVER),
netdev@vger.kernel.org (open list:NETWORKING DRIVERS),
linux-kernel@vger.kernel.org (open list)
Subject: Re: [PATCH net-next] net: thunderx: Unembed netdev structure
Date: Tue, 25 Jun 2024 17:54:34 -0700 [thread overview]
Message-ID: <20240625175434.53ccea3a@kernel.org> (raw)
In-Reply-To: <20240624102919.4016797-1-leitao@debian.org>
On Mon, 24 Jun 2024 03:29:18 -0700 Breno Leitao wrote:
> static void bgx_lmac_handler(struct net_device *netdev)
> {
> - struct lmac *lmac = container_of(netdev, struct lmac, netdev);
> + struct lmac *lmac = netdev_priv(netdev);
I think you are storing a pointer to lmac, so:
struct lmac **priv = netdev_priv(netdev);
struct lmac *lmac = *priv;
--
pw-bot: cr
next prev parent reply other threads:[~2024-06-26 0:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 10:29 [PATCH net-next] net: thunderx: Unembed netdev structure Breno Leitao
2024-06-26 0:54 ` Jakub Kicinski [this message]
2024-06-26 15:12 ` Breno Leitao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240625175434.53ccea3a@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=leitao@debian.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sgoutham@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).