From: "Mody, Rasesh" <Rasesh.Mody@cavium.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: Dept-Eng DPDK Dev <Dept-EngDPDKDev@cavium.com>,
"Patil, Harish" <Harish.Patil@cavium.com>
Subject: Re: [PATCH 8/9] net/qede: use newer packet mbuf allocate API
Date: Sat, 1 Jul 2017 19:34:46 +0000 [thread overview]
Message-ID: <BN3PR0701MB1574412F4AA49BF1B651F21B9FD00@BN3PR0701MB1574.namprd07.prod.outlook.com> (raw)
In-Reply-To: <47bf845e-61a1-14c2-428b-5a42864355d4@intel.com>
Hi Ferruh,
> From: Ferruh Yigit [mailto:ferruh.yigit@intel.com]
> Sent: Thursday, June 29, 2017 5:55 AM
>
> On 6/29/2017 10:51 AM, Rasesh Mody wrote:
> > Use rte_pktmbuf_alloc() API instead of rte_mbuf_raw_alloc().
> >
> > 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 8063233..6b047a3 100644
> > --- a/drivers/net/qede/qede_rxtx.c
> > +++ b/drivers/net/qede/qede_rxtx.c
> > @@ -16,7 +16,7 @@ static inline int qede_alloc_rx_buffer(struct
> qede_rx_queue *rxq)
> > dma_addr_t mapping;
> > uint16_t idx = rxq->sw_rx_prod & NUM_RX_BDS(rxq);
> >
> > - new_mb = rte_mbuf_raw_alloc(rxq->mb_pool);
> > + new_mb = rte_pktmbuf_alloc(rxq->mb_pool);
>
> rte_pktmbuf_alloc() is more expensive call, because of
> rte_pktmbuf_reset() it has.
>
> Are you sure you want to switch, what is the motivation?
Yes, the intent was to initialize a new mbuf. But thinking over it again, we think it's better to skip this patch as we are updating most of the mbuf flags in receive routine anyway (except next and tx_offload fields). We've sent v2 series without this patch.
Thanks!
-Rasesh
>
> > if (unlikely(!new_mb)) {
> > PMD_RX_LOG(ERR, rxq,
> > "Failed to allocate rx buffer "
> >
next prev parent reply other threads:[~2017-07-01 19:34 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-29 9:51 [PATCH 0/9] net/qede: update PMD to 2.5.1.1 Rasesh Mody
2017-06-29 9:51 ` [PATCH 1/9] net/qede: fix DMA memory leak Rasesh Mody
2017-06-29 9:51 ` [PATCH 2/9] net/qede: add notifying HW errors Rasesh Mody
2017-06-29 9:51 ` [PATCH 3/9] net/qede: limit ring size to 32k Rasesh Mody
2017-06-29 9:51 ` [PATCH 4/9] net/qede: comments traces and format changes Rasesh Mody
2017-06-29 9:51 ` [PATCH 5/9] net/qede: change debug verbosity of PMD messages Rasesh Mody
2017-06-29 9:51 ` [PATCH 6/9] net/qede: set mdump flag Rasesh Mody
2017-06-29 9:51 ` [PATCH 7/9] net/qede: add missing check for VNI Rasesh Mody
2017-06-29 9:51 ` [PATCH 8/9] net/qede: use newer packet mbuf allocate API Rasesh Mody
2017-06-29 12:55 ` Ferruh Yigit
2017-07-01 19:34 ` Mody, Rasesh [this message]
2017-06-29 9:51 ` [PATCH 9/9] net/qede: update PMD version to 2.5.1.1 Rasesh Mody
2017-06-29 12:16 ` [PATCH 0/9] net/qede: update PMD " Ferruh Yigit
2017-07-01 19:29 ` [PATCH v2 0/8] " Rasesh Mody
2017-07-05 10:01 ` Ferruh Yigit
2017-07-08 18:35 ` Mody, Rasesh
2017-07-01 19:29 ` [PATCH v2 1/8] net/qede: fix DMA memory leak Rasesh Mody
2017-07-01 19:29 ` [PATCH v2 2/8] net/qede: add notifying HW errors Rasesh Mody
2017-07-01 19:29 ` [PATCH v2 3/8] net/qede: limit ring size to 32k Rasesh Mody
2017-07-01 19:29 ` [PATCH v2 4/8] net/qede: comments traces and format changes Rasesh Mody
2017-07-01 19:29 ` [PATCH v2 5/8] net/qede: change debug verbosity of PMD messages Rasesh Mody
2017-07-01 19:30 ` [PATCH v2 6/8] net/qede: set mdump flag Rasesh Mody
2017-07-01 19:30 ` [PATCH v2 7/8] net/qede: add missing check for VNI Rasesh Mody
2017-07-03 10:08 ` Ferruh Yigit
2017-07-01 19:30 ` [PATCH v2 8/8] net/qede: update PMD version to 2.5.1.1 Rasesh Mody
2017-07-03 10:06 ` Ferruh Yigit
2017-07-05 9:57 ` Ferruh Yigit
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=BN3PR0701MB1574412F4AA49BF1B651F21B9FD00@BN3PR0701MB1574.namprd07.prod.outlook.com \
--to=rasesh.mody@cavium.com \
--cc=Dept-EngDPDKDev@cavium.com \
--cc=Harish.Patil@cavium.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
/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 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.