]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Stop NAPI when irq balancer changes affinity
authorTariq Toukan <tariqt@mellanox.com>
Sun, 2 Jul 2017 10:17:42 +0000 (13:17 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 3 Sep 2017 03:34:09 +0000 (06:34 +0300)
commit5df277a8983f13f637930b567ea210c8b503e1aa
tree155add1ef705830009a464619d4965608f97d99d
parente9ca130441c13ece6359fafb9eb5b17d344670cd
net/mlx5e: Stop NAPI when irq balancer changes affinity

NAPI context keeps rescheduling on same CPU as long as it's busy.
This doesn't give the oppurtunity for changes in irq affinities
to take effect.
Fix that by calling napi_complete_done() upon a change in affinity.
This would stop the NAPI and reschedule it on the new CPU.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c