]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: restore conditional call to napi_complete_done()
authorEric Dumazet <edumazet@google.com>
Mon, 10 Nov 2014 22:07:20 +0000 (14:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Nov 2014 02:09:03 +0000 (21:09 -0500)
commit07beeba7e58ee8d478abe854d516cc7b88df14b6
treebb3897b6254475a5170fda29b9355cf7af678dfb
parent8bc256997cbdc1217ba0d2c8afa6ae58ce8209cb
mlx4: restore conditional call to napi_complete_done()

After commit 706cc47772 ("mlx4: use napi_complete_done()") we ended up
calling napi_complete_done() in the case NAPI poll consumed all its
budget.

This added extra interrupt pressure, this patch restores proper
behavior.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 706cc47772 ("mlx4: use napi_complete_done()")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c