projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
364b605
)
net/mlx4_en: use napi_complete_done() return value
author
Eric Dumazet
<
[email protected]
>
Tue, 15 Nov 2016 18:15:14 +0000
(10:15 -0800)
committer
David S. Miller
<
[email protected]
>
Wed, 16 Nov 2016 18:40:58 +0000
(13:40 -0500)
Do not rearm interrupts if we are busy polling.
mlx4 uses separate CQ for TX and RX, so number of TX interrupts
does not change, unfortunately.
Signed-off-by: Eric Dumazet <
[email protected]
>
Cc: Willem de Bruijn <
[email protected]
>
Cc: Adam Belay <
[email protected]
>
Cc: Tariq Toukan <
[email protected]
>
Cc: Yuval Mintz <
[email protected]
>
Cc: Ariel Elior <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/en_rx.c
b/drivers/net/ethernet/mellanox/mlx4/en_rx.c
index 2cc91002064f9aab7d3abfe828b85f3b6e7393fd..22f08f9ef4645869359783823127c0432fc7a591 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/en_rx.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/en_rx.c
@@
-1137,8
+1137,8
@@
int mlx4_en_poll_rx_cq(struct napi_struct *napi, int budget)
done = 0;
}
/* Done for now */
- napi_complete_done(napi, done);
- mlx4_en_arm_cq(priv, cq);
+ if (napi_complete_done(napi, done))
+
mlx4_en_arm_cq(priv, cq);
return done;
}