> -----Original Message-----
> From: Larysa Zaremba <[email protected]>
> Sent: Monday, November 16, 2026 4:17 PM
> To: Nguyen, Anthony L <[email protected]>; intel-wired-
> [email protected]
> Cc: Zaremba, Larysa <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>; Loktionov, Aleksandr
> <[email protected]>; Lobakin, Aleksander
> <[email protected]>
> Subject: [PATCH iwl-next] ixgbe: allow loading XDP program on hosts with >
> 128 CPUs
> 
> Commit 4fe815850bdc ("ixgbe: let the xdpdrv work with more than 64 cpus")
> added spinlocks that ensure that an XDP queue can be shared between
> multiple CPUs, but the limitation of 64 CPUs was not lifted, and instead was
> just doubled. So currently it is not possible to load an XDP program on a
> system with e.g. 144 CPUs, despite there is nothing in the synchronization
> model used that would support such limitation.
> 
> Remove the CPU number limitation for XDP entirely.
> 
> Reviewed-by: Aleksandr Loktionov <[email protected]>
> Signed-off-by: Larysa Zaremba <[email protected]>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> index 6c022f4ee6da..6562c95746df 100644
> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> @@ -11001,12 +11001,6 @@ static int ixgbe_xdp_setup(struct net_device
> *dev, struct bpf_prog *prog)
>                       return -EINVAL;
>       }
> 
> -     /* if the number of cpus is much larger than the maximum of queues,
> -      * we should stop it and then return with ENOMEM like before.
> -      */
> -     if (nr_cpu_ids > IXGBE_MAX_XDP_QS * 2)
> -             return -ENOMEM;
> -
>       old_prog = xchg(&adapter->xdp_prog, prog);
>       need_reset = (!!prog != !!old_prog);
> 
> --
> 2.54.0


Tested-by: Patryk Holda <[email protected]> 



Reply via email to