summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx4/en_rx.c
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2015-07-22 16:53:48 +0300
committerDavid S. Miller <davem@davemloft.net>2015-07-27 02:29:25 +0300
commit9f5b031770b9108b57881c83dffc02cd90ec3961 (patch)
tree793f828113af4855d38aae0346187b9a00c09e8f /drivers/net/ethernet/mellanox/mlx4/en_rx.c
parent1c1bf34951e8d17941bf708d1901c47e81b15d55 (diff)
downloadlinux-9f5b031770b9108b57881c83dffc02cd90ec3961.tar.xz
net/mlx4_core: Relieve cpu load average on the port sending flow
When a port is not attached, the FW requires a longer than usual time to execute the SENSE_PORT command. In the command flow, the wait_for_completion_timeout call used in mlx4_cmd_wait puts the kernel thread into the uninterruptible state during this time. This, in turn, due to the computation method, causes the CPU load average to increase. Fix this by using wait_for_completion_interruptible_timeout() for the SENSE_PORT command, which puts the thread in the interruptible state. In this state, the thread does not contribute to the CPU load average. Treat the interrupted case as if the SENSE_PORT command returned port_type = NONE. Fix suggested by Gideon Naim <gideonn@mellanox.com> and Bart Van Assche <bart.vanassche@sandisk.com>. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_rx.c')
0 files changed, 0 insertions, 0 deletions