From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: "De Lara Guarch,
Pablo"
<pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH] pcap: Fixed bug in eth_pcap_rx function
Date: Wed, 13 Aug 2014 01:29:39 +0200 [thread overview]
Message-ID: <2092493.KHLGrS08OS@xps13> (raw)
In-Reply-To: <F21F274FCF2C0948830A3ED003452977180210-0J0gbvR4kTg/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
> > Normally, bufs[i] stores the mbuf pointer, the index of buf[i]
> > is the loop count i, but if header.len > buf_size, DPDK will
> > free the mbuf, but the loop count i still increases, so some
> > of the items in bufs[] might be NULL ponter, causing a potential
> > DPDK core. Using num_rx as the index for bufs[] solves the problem.
> >
> > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> Tested-by: Jiajia SunX <sunx.jiajia-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Acked-by: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
Applied for version 1.7.1
Thanks
--
Thomas
prev parent reply other threads:[~2014-08-12 23:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 10:18 [PATCH] pcap: Fixed bug in eth_pcap_rx function Pablo de Lara
[not found] ` <1407233900-9734-1-git-send-email-pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-08-12 2:29 ` Jiajia, SunX
[not found] ` <F21F274FCF2C0948830A3ED003452977180210-0J0gbvR4kTg/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-08-12 23:29 ` Thomas Monjalon [this message]
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=2092493.KHLGrS08OS@xps13 \
--to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
--cc=pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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 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.