git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
638f206
)
bnx2x: skip Rx producer refresh when no packet
author
Rasesh Mody
<rasesh.mody@qlogic.com>
Fri, 11 Dec 2015 18:31:54 +0000
(10:31 -0800)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Sun, 13 Dec 2015 00:46:07 +0000
(
01:46
+0100)
Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>
drivers/net/bnx2x/bnx2x_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_rxtx.c
b/drivers/net/bnx2x/bnx2x_rxtx.c
index
09e3ebf
..
e8998c0
100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_rxtx.c
+++ b/
drivers/net/bnx2x/bnx2x_rxtx.c
@@
-374,6
+374,9
@@
bnx2x_recv_pkts(void *p_rxq, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
sw_cq_cons = rxq->rx_cq_head;
sw_cq_prod = rxq->rx_cq_tail;
+ if (sw_cq_cons == hw_cq_cons)
+ return 0;
+
while (nb_rx < nb_pkts && sw_cq_cons != hw_cq_cons) {
bd_prod &= MAX_RX_BD(rxq);