[PATCH v4 2/7] net/netvsc: add multi-process VF device removal support

Stephen Hemminger stephen at networkplumber.org
Thu Feb 26 19:51:13 CET 2026


On Wed, 25 Feb 2026 18:39:33 -0800
longli at linux.microsoft.com wrote:

> /* Spinlock for netvsc_shared_data */
> +static rte_spinlock_t netvsc_shared_data_lock = RTE_SPINLOCK_INITIALIZER;
> +
> +static struct netvsc_shared_data {
> +	RTE_ATOMIC(uint32_t) secondary_cnt;
> +} *netvsc_shared_data;
> +

This looks a lot like a sequence lock (spin lock + atomic).
Might be clearer with that.


More information about the stable mailing list