[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <165224718272.19198.8867712647289084011.kvalo@kernel.org>
Date: Wed, 11 May 2022 05:33:04 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Jaehee Park <jhpark1013@...il.com>
Cc: Jérôme Pouiller <jerome.pouiller@...abs.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-staging@...ts.linux.dev,
outreachy@...ts.linux.dev, Jaehee Park <jhpark1013@...il.com>,
Stefano Brivio <sbrivio@...hat.com>
Subject: Re: [PATCH v6] wfx: use container_of() to get vif
Jaehee Park <jhpark1013@...il.com> wrote:
> Currently, upon virtual interface creation, wfx_add_interface() stores
> a reference to the corresponding struct ieee80211_vif in private data,
> for later usage. This is not needed when using the container_of
> construct. This construct already has all the info it needs to retrieve
> the reference to the corresponding struct from the offset that is
> already available, inherent in container_of(), between its type and
> member inputs (struct ieee80211_vif and drv_priv, respectively).
> Remove vif (which was previously storing the reference to the struct
> ieee80211_vif) from the struct wfx_vif, define a function
> wvif_to_vif(wvif) for container_of(), and replace all wvif->vif with
> the newly defined container_of construct.
>
> Signed-off-by: Jaehee Park <jhpark1013@...il.com>
Patch applied to wireless-next.git, thanks.
2c33360bce6a wfx: use container_of() to get vif
--
https://patchwork.kernel.org/project/linux-wireless/patch/20220506170046.GA1297231@jaehee-ThinkPad-X1-Extreme/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists