]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/mlx4_core: Move affinity hints to mlx4_core ownership
authorIdo Shamay <idos@mellanox.com>
Sun, 31 May 2015 06:30:17 +0000 (09:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 06:35:34 +0000 (23:35 -0700)
commitde1618034ae5704f9e503a20a1c328a0e60f6b5f
tree087fda66574fdf8e4b18397aa3261f55c3901891
parentc66fa19c405a36673d4aab13658c8246413d5c0f
net/mlx4_core: Move affinity hints to mlx4_core ownership

Now that EQs management is in the sole responsibility of mlx4_core,
the IRQ affinity hints configuration should be in its hands as well.
request_irq is called only once by the first consumer (maybe mlx4_ib),
so mlx4_en passes the affinity mask too late. We also need to request
vectors according to the cores we want to run on.

mlx4_core distribution of IRQs to cores is straight forward,
EQ(i)->IRQ will set affinity hint to core i.
Consumers need to request EQ vectors, according to their cores
considerations (NUMA).

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_cq.c
drivers/net/ethernet/mellanox/mlx4/eq.c
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h