From: Jerin Jacob <jerinjacobk@gmail.com>
To: Rasesh Mody <rmody@marvell.com>
Cc: David Marchand <david.marchand@redhat.com>,
"dev@dpdk.org" <dev@dpdk.org>,
"stable@dpdk.org" <stable@dpdk.org>,
Shahed Shaikh <shshaikh@marvell.com>,
Ferruh Yigit <ferruh.yigit@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/qede: only access sw rx ring index for debug
Date: Fri, 4 Oct 2019 14:19:20 +0530 [thread overview]
Message-ID: <CALBAE1M1MTNWCeBzyA=crhk3JoSkt-=8btEZSVULCxNGOrD7Qg@mail.gmail.com> (raw)
In-Reply-To: <BYAPR18MB2838F7AE173653CFF059FCF5B59F0@BYAPR18MB2838.namprd18.prod.outlook.com>
On Thu, Oct 3, 2019 at 11:59 PM Rasesh Mody <rmody@marvell.com> wrote:
>
> >From: David Marchand <david.marchand@redhat.com>
> >Sent: Friday, September 27, 2019 4:29 AM
> >
> >----------------------------------------------------------------------
> >Caught by clang, this idx value is only used for a debug message when the
> >mbufs allocation fails.
> >No need to use idx as a temporary storage.
> >
> >Fixes: 8f2312474529 ("net/qede: fix performance bottleneck in Rx path")
> >Cc: stable@dpdk.org
> >
> >Signed-off-by: David Marchand <david.marchand@redhat.com>
> >---
>
> Acked-by: Rasesh Mody <rmody@marvell.com>
Changed the subject to "net/qede: only access SW Rx ring index for
debug" to fix check-git-log.sh warning.
Applied to dpdk-next-net-mrvl/master. Thanks
> > drivers/net/qede/qede_rxtx.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> >diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
> >index c38cbb9..1fbeba2 100644
> >--- a/drivers/net/qede/qede_rxtx.c
> >+++ b/drivers/net/qede/qede_rxtx.c
> >@@ -46,8 +46,6 @@ static inline int qede_alloc_rx_bulk_mbufs(struct
> >qede_rx_queue *rxq, int count)
> > int i, ret = 0;
> > uint16_t idx;
> >
> >- idx = rxq->sw_rx_prod & NUM_RX_BDS(rxq);
> >-
> > if (count > QEDE_MAX_BULK_ALLOC_COUNT)
> > count = QEDE_MAX_BULK_ALLOC_COUNT;
> >
> >@@ -56,7 +54,9 @@ static inline int qede_alloc_rx_bulk_mbufs(struct
> >qede_rx_queue *rxq, int count)
> > PMD_RX_LOG(ERR, rxq,
> > "Failed to allocate %d rx buffers "
> > "sw_rx_prod %u sw_rx_cons %u mp entries %u free
> >%u",
> >- count, idx, rxq->sw_rx_cons & NUM_RX_BDS(rxq),
> >+ count,
> >+ rxq->sw_rx_prod & NUM_RX_BDS(rxq),
> >+ rxq->sw_rx_cons & NUM_RX_BDS(rxq),
> > rte_mempool_avail_count(rxq->mb_pool),
> > rte_mempool_in_use_count(rxq->mb_pool));
> > return -ENOMEM;
> >--
> >1.8.3.1
>
next prev parent reply other threads:[~2019-10-04 8:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-03 18:29 Rasesh Mody
2019-10-04 8:49 ` Jerin Jacob [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-09-27 11:28 David Marchand
2019-10-03 14:39 ` Jerin Jacob
2019-10-03 18:30 ` Rasesh Mody
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='CALBAE1M1MTNWCeBzyA=crhk3JoSkt-=8btEZSVULCxNGOrD7Qg@mail.gmail.com' \
--to=jerinjacobk@gmail.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=rmody@marvell.com \
--cc=shshaikh@marvell.com \
--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).