]> 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)
commit9a14e47a28444304cae23f0ad0d75b128bf6bfb2
tree155add1ef705830009a464619d4965608f97d99d
parent3180b3f606c15bafc735ffb3e710ef6e639ffbee
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