]> asedeno.scripts.mit.edu Git - linux.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)
commita8c2eb15797a0f0bf17734d365da7bdc3e263155
tree155add1ef705830009a464619d4965608f97d99d
parent7b33aaeaae1acfec01cbb0cf41fa8c07aea55609
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