All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] bnx2x: Fix error check in TX path
@ 2015-12-11 18:31 Rasesh Mody
  2015-12-11 18:31 ` [PATCH 2/2] bnx2x: Skip RX producer refresh when pkts not received Rasesh Mody
  0 siblings, 1 reply; 3+ messages in thread
From: Rasesh Mody @ 2015-12-11 18:31 UTC (permalink / raw)
  To: thomas.monjalon; +Cc: dev

Correct the error check in PMD transmit routine.

Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>
---
 drivers/net/bnx2x/bnx2x_rxtx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c
index 0f8b9bd..ccece43 100644
--- a/drivers/net/bnx2x/bnx2x_rxtx.c
+++ b/drivers/net/bnx2x/bnx2x_rxtx.c
@@ -246,7 +246,7 @@ bnx2x_xmit_pkts(void *p_txq, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
 			bnx2x_txeof(sc, fp);
 		}
 
-		if (unlikely(ret == ENOMEM)) {
+		if (unlikely(ret == -ENOMEM)) {
 			break;
 		}
 
-- 
1.7.10.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] bnx2x: Skip RX producer refresh when pkts not received
  2015-12-11 18:31 [PATCH 1/2] bnx2x: Fix error check in TX path Rasesh Mody
@ 2015-12-11 18:31 ` Rasesh Mody
  2015-12-13  0:20   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Rasesh Mody @ 2015-12-11 18:31 UTC (permalink / raw)
  To: thomas.monjalon; +Cc: dev

Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>
---
 drivers/net/bnx2x/bnx2x_rxtx.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/bnx2x/bnx2x_rxtx.c b/drivers/net/bnx2x/bnx2x_rxtx.c
index ccece43..28bc520 100644
--- a/drivers/net/bnx2x/bnx2x_rxtx.c
+++ b/drivers/net/bnx2x/bnx2x_rxtx.c
@@ -381,6 +381,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);
-- 
1.7.10.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] bnx2x: Skip RX producer refresh when pkts not received
  2015-12-11 18:31 ` [PATCH 2/2] bnx2x: Skip RX producer refresh when pkts not received Rasesh Mody
@ 2015-12-13  0:20   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2015-12-13  0:20 UTC (permalink / raw)
  To: Rasesh Mody; +Cc: dev

2015-12-11 10:31, Rasesh Mody:
> Signed-off-by: Rasesh Mody <rasesh.mody@qlogic.com>

Series applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-13  0:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-11 18:31 [PATCH 1/2] bnx2x: Fix error check in TX path Rasesh Mody
2015-12-11 18:31 ` [PATCH 2/2] bnx2x: Skip RX producer refresh when pkts not received Rasesh Mody
2015-12-13  0:20   ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.