eed ; Achiad
> Shochat
> Subject: Re: [PATCH net-next 4/8] net/mlx5e: Consider IRQ affinity changes in
> NAPI poll
>
> From: Or Gerlitz
> Date: Sun, 1 Nov 2015 19:35:18 +0200
>
>> @@ -49,6 +50,15 @@ struct mlx5_cqe64 *mlx5e_get_cqe(struct mlx5e_cq *cq)
>>
From: Or Gerlitz
Date: Sun, 1 Nov 2015 19:35:18 +0200
> @@ -49,6 +50,15 @@ struct mlx5_cqe64 *mlx5e_get_cqe(struct mlx5e_cq *cq)
> return cqe;
> }
>
> +static inline bool mlx5e_no_channel_affinity_change(struct mlx5e_channel *c)
> +{
> + int current_cpu = smp_processor_id();
> +
From: Achiad Shochat
Under heavy network traffic load we may be in NAPI poll mode for
a long time, thus IRQ affinity changes do not affect NAPI as desired.
Now once in a NAPI poll session we check the channel IRQ affinity,
if it points to a different CPU core than the current, stop polling
and t