[EXTERNAL] [PATCH 1/2] net/netvsc: make da_cache_list local
Long Li
longli at microsoft.com
Fri Sep 26 18:34:35 CEST 2025
> Subject: [EXTERNAL] [PATCH 1/2] net/netvsc: make da_cache_list local
>
> The list of devices is only used in one file and does not follow naming prefix
> convention. Make it local.
>
> Fixes: 9a9d038c782e ("net/netvsc: cache device parameters for hotplug events")
> Cc: longli at microsoft.com
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Reviewed-by: Long Li <longli at microsoft.com>
> ---
> drivers/net/netvsc/hn_ethdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
> index 1d788f3fb7..5b9b54c068 100644
> --- a/drivers/net/netvsc/hn_ethdev.c
> +++ b/drivers/net/netvsc/hn_ethdev.c
> @@ -102,7 +102,7 @@ struct da_cache {
> char drv_str[];
> };
>
> -LIST_HEAD(da_cache_list, da_cache) da_cache_list;
> +static LIST_HEAD(da_cache_list, da_cache) da_cache_list;
> static unsigned int da_cache_usage;
>
> static struct rte_eth_dev *
> --
> 2.47.3
More information about the dev
mailing list