From: Qianfeng Rong <rongqianfeng@vivo.com>
To: Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Jiri Slaby <jirislaby@kernel.org>,
Nick Kossifidis <mickflemm@gmail.com>,
Luis Chamberlain <mcgrof@kernel.org>,
Brian Norris <briannorris@chromium.org>,
Francesco Dolcini <francesco@dolcini.it>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Jesper Dangaard Brouer <hawk@kernel.org>,
John Fastabend <john.fastabend@gmail.com>,
Stanislav Fomichev <sdf@fomichev.me>,
Qianfeng Rong <rongqianfeng@vivo.com>,
Johannes Berg <johannes.berg@intel.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Kalle Valo <kvalo@kernel.org>,
Aditya Kumar Singh <quic_adisi@quicinc.com>,
Roopni Devanathan <quic_rdevanat@quicinc.com>,
Dan Carpenter <dan.carpenter@linaro.org>,
intel-wired-lan@lists.osuosl.org (moderated list:INTEL ETHERNET
DRIVERS), netdev@vger.kernel.org (open list:NETWORKING DRIVERS),
linux-kernel@vger.kernel.org (open list),
oss-drivers@corigine.com (open list:NETRONOME ETHERNET DRIVERS),
linux-wireless@vger.kernel.org (open list:ATHEROS ATH5K WIRELESS
DRIVER),
bpf@vger.kernel.org (open list:XDP (eXpress Data
Path):Keyword:(?:\b|_)xdp(?:\b|_))
Subject: [PATCH 0/5] net: use vmalloc_array() to simplify code
Date: Tue, 12 Aug 2025 21:32:13 +0800 [thread overview]
Message-ID: <20250812133226.258318-1-rongqianfeng@vivo.com> (raw)
Remove array_size() calls and replace vmalloc() with vmalloc_array() to
simplify the code and maintain consistency with existing kmalloc_array()
usage.
Compile-tested only.
Qianfeng Rong (5):
ethtool: use vmalloc_array() to simplify code
nfp: flower: use vmalloc_array() to simplify code
ppp: use vmalloc_array() to simplify
wifi: ath5k: use vmalloc_array() to simplify code
wifi: mwifiex: use vmalloc_array() to simplify code
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 2 +-
drivers/net/ethernet/intel/igb/igb_ethtool.c | 8 ++++----
drivers/net/ethernet/intel/igc/igc_ethtool.c | 8 ++++----
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 2 +-
drivers/net/ethernet/intel/ixgbevf/ethtool.c | 6 +++---
drivers/net/ethernet/netronome/nfp/flower/metadata.c | 4 ++--
drivers/net/ppp/bsd_comp.c | 4 ++--
drivers/net/wireless/ath/ath5k/debug.c | 2 +-
drivers/net/wireless/marvell/mwifiex/cfg80211.c | 4 ++--
9 files changed, 20 insertions(+), 20 deletions(-)
--
2.34.1
next reply other threads:[~2025-08-12 13:32 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 13:32 Qianfeng Rong [this message]
2025-08-12 13:32 ` [PATCH 1/5] ethtool: use vmalloc_array() to simplify code Qianfeng Rong
2025-08-12 16:28 ` [Intel-wired-lan] " Loktionov, Aleksandr
2025-08-12 16:34 ` Paul Menzel
2025-08-14 4:05 ` Qianfeng Rong
2025-08-14 6:28 ` Paul Menzel
2025-08-14 6:41 ` Qianfeng Rong
2025-08-12 20:49 ` Jakub Kicinski
2025-08-13 7:00 ` Qianfeng Rong
2025-08-12 13:32 ` [PATCH 2/5] nfp: flower: " Qianfeng Rong
2025-08-12 13:32 ` [PATCH 3/5] ppp: use vmalloc_array() to simplify Qianfeng Rong
2025-08-12 13:32 ` [PATCH 4/5] wifi: ath5k: use vmalloc_array() to simplify code Qianfeng Rong
2025-08-12 13:32 ` [PATCH 5/5] wifi: mwifiex: " Qianfeng Rong
2025-08-12 13:48 ` Dan Carpenter
2025-08-12 14:13 ` Qianfeng Rong
2025-08-12 14:31 ` Dan Carpenter
2025-08-13 6:52 ` Qianfeng Rong
2025-08-13 9:25 ` Dan Carpenter
2025-08-13 18:35 ` Jeff Johnson
2025-08-14 6:24 ` Dan Carpenter
2025-08-12 20:48 ` [PATCH 0/5] net: " Jakub Kicinski
2025-08-13 1:53 ` Qianfeng Rong
2025-08-13 6:49 ` Qianfeng Rong
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=20250812133226.258318-1-rongqianfeng@vivo.com \
--to=rongqianfeng@vivo.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=briannorris@chromium.org \
--cc=dan.carpenter@linaro.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=francesco@dolcini.it \
--cc=hawk@kernel.org \
--cc=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jirislaby@kernel.org \
--cc=johannes.berg@intel.com \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=mickflemm@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@corigine.com \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=quic_adisi@quicinc.com \
--cc=quic_rdevanat@quicinc.com \
--cc=s.hauer@pengutronix.de \
--cc=sdf@fomichev.me \
/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).