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

Stephen Hemminger
2026-02-21T05:16:21Z

On Fri, 20 Feb 2026 18:45:20 -0800
longli@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.