Re: [PATCH net-next V6 2/2] net/mlx4_en: Use affinity hint

From: Eric Dumazet
Date: Mon Jun 02 2014 - 00:16:59 EST


On Sun, 2014-05-25 at 17:47 +0300, Amir Vadai wrote:
> From: Yuval Atias <yuvala@xxxxxxxxxxxx>
>
> The âaffinity hintâ mechanism is used by the user space
> daemon, irqbalancer, to indicate a preferred CPU mask for irqs.
> Irqbalancer can use this hint to balance the irqs between the
> cpus indicated by the mask.
>
> We wish the HCA to preferentially map the IRQs it uses to numa cores
> close to it. To accomplish this, we use cpumask_set_cpu_local_first(), that
> sets the affinity hint according the following policy:
> First it maps IRQs to âcloseâ numa cores. If these are exhausted, the
> remaining IRQs are mapped to âfarâ numa cores.
>
> Signed-off-by: Yuval Atias <yuvala@xxxxxxxxxxxx>
> Signed-off-by: Amir Vadai <amirv@xxxxxxxxxxxx>
> ---

CC [M] drivers/net/ethernet/mellanox/mlx4/en_netdev.o
drivers/net/ethernet/mellanox/mlx4/en_netdev.c: In function âmlx4_en_init_affinity_hintâ:
drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1546:23: error: incompatible types when assigning to type âcpumask_var_tâ from type âvoid *â
drivers/net/ethernet/mellanox/mlx4/en_netdev.c: In function âmlx4_en_free_affinity_hintâ:
drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1553:41: error: incompatible types when assigning to type âcpumask_var_tâ from type âvoid *â


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/