DPDK patches and discussions
 help / color / mirror / Atom feed
From: Rasesh Mody <rasesh.mody@cavium.com>
To: <dev@dpdk.org>
Cc: Rasesh Mody <rasesh.mody@cavium.com>,
	<Dept-EngDPDKDev@cavium.com>, <stable@dpdk.org>
Subject: [dpdk-dev] [PATCH] net/qede: fix to increment Tx packets
Date: Fri, 28 Apr 2017 17:38:34 -0700	[thread overview]
Message-ID: <1493426314-16514-1-git-send-email-rasesh.mody@cavium.com> (raw)

Inadvertently we failed to increment tx_pkts pointer while addressing
coverity issue, this patch fixes that.

Fixes: 41b52b732ec5 ("net/qede/base: fix code flow and remove unused code")
Cc: stable@dpdk.org

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

diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
index 83e1bc4..baea1bb 100644
--- a/drivers/net/qede/qede_rxtx.c
+++ b/drivers/net/qede/qede_rxtx.c
@@ -1471,7 +1471,7 @@ static inline uint32_t qede_rx_cqe_to_tunn_pkt_type(uint16_t flags)
 		bd3 = NULL;
 		hdr_size = 0;
 
-		mbuf = *tx_pkts;
+		mbuf = *tx_pkts++;
 		assert(mbuf);
 
 		/* Check minimum TX BDS availability against available BDs */
-- 
1.7.10.3

             reply	other threads:[~2017-04-29  0:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-29  0:38 Rasesh Mody [this message]
2017-05-01  9:35 ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493426314-16514-1-git-send-email-rasesh.mody@cavium.com \
    --to=rasesh.mody@cavium.com \
    --cc=Dept-EngDPDKDev@cavium.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).