From: Long Li <longli@microsoft.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
"longli@linuxonhyperv.com" <longli@linuxonhyperv.com>
Cc: Wei Hu <weh@microsoft.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [EXTERNAL] Re: [PATCH] net/netvsc: cache device parameters for hot plug events
Date: Tue, 26 Aug 2025 16:19:40 +0000 [thread overview]
Message-ID: <DS3PR21MB57356440D86EDBAD82AE24BDCE39A@DS3PR21MB5735.namprd21.prod.outlook.com> (raw)
In-Reply-To: <20250826065606.13738b90@hermes.local>
> On Mon, 25 Aug 2025 18:15:59 -0700
> longli@linuxonhyperv.com wrote:
>
> > From: Long Li <longli@microsoft.com>
> >
> > If a device is hot removed and hot plugged, it needs the same driver
> > parameters that are passed to EAL. However, during device removal, all
> > EAL driver parameters are freed as part of the cleanup.
> >
> > Cache those driver parameters for future hot plug events. Because we
> > don't know which device will show up, cache all the PCI driver parameters.
> >
> > Signed-off-by: Long Li <longli@microsoft.com>
>
> Please fix this warning.
Will fix it. Thank you.
>
> *Build Failed #1:
> OS: OpenAnolis8.10-64
> Target: x86_64-native-linuxapp-gcc
> FAILED: drivers/libtmp_rte_net_netvsc.a.p/net_netvsc_hn_ethdev.c.o
> gcc -Idrivers/libtmp_rte_net_netvsc.a.p -Idrivers -I../drivers -
> Idrivers/net/netvsc -I../drivers/net/netvsc -Ilib/ethdev -I../lib/ethdev -
> Ilib/eal/common -I../lib/eal/common -I. -I.. -Iconfig -I../config -Ilib/eal/include
> -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -
> Ilib/eal/x86/include -I../lib/eal/x86/include -I../kernel/linux -Ilib/eal -I../lib/eal
> -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I../lib/metrics -
> Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -
> Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -
> Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -
> I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Idrivers/bus/vmbus -
> I../drivers/bus/vmbus -I../drivers/bus/vmbus/linux -fdiagnostics-
> color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -
> std=c11 -O3 -include rte_config.h -Wvla -Wcast-qual -Wdeprecated -Wformat
> -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-
> prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-
> compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-
> aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -
> mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-
> truncation -Wno-vla -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.netvsc -MD -
> MQ drivers/libtmp_rte_net_netvsc.a.p/net_netvsc_hn_ethdev.c.o -MF
> drivers/libtmp_rte_net_netvsc.a.p/net_netvsc_hn_ethdev.c.o.d -o
> drivers/libtmp_rte_net_netvsc.a.p/net_netvsc_hn_ethdev.c.o -
> c ../drivers/net/netvsc/hn_ethdev.c
> ../drivers/net/netvsc/hn_ethdev.c: In function ‘populate_cache_list’:
> ../drivers/net/netvsc/hn_ethdev.c:1469:40: error: argument to ‘sizeof’ in
> ‘strncpy’ call is the same expression as the source; did you mean to use the size
> of the destination? [-Werror=sizeof-pointer-memaccess]
> strncpy(cache->name, da->name, sizeof(da->name));
prev parent reply other threads:[~2025-08-26 16:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-26 1:15 longli
2025-08-26 13:56 ` Stephen Hemminger
2025-08-26 16:19 ` Long Li [this message]
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=DS3PR21MB57356440D86EDBAD82AE24BDCE39A@DS3PR21MB5735.namprd21.prod.outlook.com \
--to=longli@microsoft.com \
--cc=dev@dpdk.org \
--cc=longli@linuxonhyperv.com \
--cc=stephen@networkplumber.org \
--cc=weh@microsoft.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).