[PATCH v2 1/8] net/netvsc: secondary ignore promiscuous enable/disable

Stephen Hemminger stephen at networkplumber.org
Sat Feb 21 06:16:14 CET 2026


On Fri, 20 Feb 2026 18:45:20 -0800
longli at linux.microsoft.com wrote:

> diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
> index 6584819f4f..5d7b410f1b 100644
> --- a/drivers/net/netvsc/hn_ethdev.c
> +++ b/drivers/net/netvsc/hn_ethdev.c
> @@ -480,6 +480,9 @@ hn_dev_promiscuous_enable(struct rte_eth_dev *dev)
>  {
>  	struct hn_data *hv = dev->data->dev_private;
>  
> +	if (rte_eal_process_type() != RTE_PROC_PRIMARY)
> +		return 0;

You might want to return -ENOTSUP rather than silently allowing secondary
to think it worked.


More information about the stable mailing list