From: Jerin Jacob <jerinjacobk@gmail.com>
To: "Chen, Mike Ximing" <mike.ximing.chen@intel.com>
Cc: "Shetty, Rashmi" <rashmi.shetty@intel.com>,
"dev@dpdk.org" <dev@dpdk.org>,
"jerinj@marvell.com" <jerinj@marvell.com>,
"Van Haaren, Harry" <harry.van.haaren@intel.com>,
"Pathak, Pravin" <pravin.pathak@intel.com>,
"McDaniel, Timothy" <timothy.mcdaniel@intel.com>
Subject: Re: [PATCH] event/dlb2: fix delayed_pop test in dlb2_selftest
Date: Mon, 15 Nov 2021 13:59:15 +0530 [thread overview]
Message-ID: <CALBAE1P-di9yfm2oa3ud3fUTdkv7JYB8FKVdQvGV7BcGWLSoNw@mail.gmail.com> (raw)
In-Reply-To: <CO1PR11MB5170DBFE1FF185AA7C752EFCD9959@CO1PR11MB5170.namprd11.prod.outlook.com>
On Sat, Nov 13, 2021 at 2:33 AM Chen, Mike Ximing
<mike.ximing.chen@intel.com> wrote:
>
>
>
> > -----Original Message-----
> > From: Shetty, Rashmi <rashmi.shetty@intel.com>
> > Sent: Friday, November 12, 2021 2:49 PM
> > To: dev@dpdk.org
> > Cc: jerinj@marvell.com; Van Haaren, Harry <harry.van.haaren@intel.com>; Pathak, Pravin
> > <pravin.pathak@intel.com>; Chen, Mike Ximing <mike.ximing.chen@intel.com>; McDaniel, Timothy
> > <timothy.mcdaniel@intel.com>; Shetty, Rashmi <rashmi.shetty@intel.com>
> > Subject: [PATCH] event/dlb2: fix delayed_pop test in dlb2_selftest
> >
> > Number of events scheduled and available for dequeue after token pop was set to dequeue_depth-1
> > instead of dequeue_depth in test_delayed_pop. The expectation is that all dequeue_depth number of
> > events can be dequeued once the last event is released.
> >
> > Signed-off-by: Rashmi Shetty <rashmi.shetty@intel.com>
> > ---
> > drivers/event/dlb2/dlb2_selftest.c | 12 ++----------
> > 1 file changed, 2 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/event/dlb2/dlb2_selftest.c b/drivers/event/dlb2/dlb2_selftest.c
> > index 5cf66c552c..2113bc2c99 100644
> > --- a/drivers/event/dlb2/dlb2_selftest.c
> > +++ b/drivers/event/dlb2/dlb2_selftest.c
> > @@ -1354,7 +1354,7 @@ test_delayed_pop(void)
> > }
> >
> > /* Release one more event. This will trigger the token pop, and
> > - * dequeue_depth - 1 more events will be scheduled to the device.
> > + * dequeue_depth more events will be scheduled to the device.
> > */
> > ev.op = RTE_EVENT_OP_RELEASE;
> >
> > @@ -1366,7 +1366,7 @@ test_delayed_pop(void)
> >
> > timeout = 0xFFFFFFFFF;
> >
> > - for (i = 0; i < port_conf.dequeue_depth - 1; i++) {
> > + for (i = 0; i < port_conf.dequeue_depth; i++) {
> > if (rte_event_dequeue_burst(evdev, 0, &ev, 1, timeout) != 1) {
> > printf("%d: event dequeue expected to succeed\n",
> > __LINE__);
> > @@ -1374,14 +1374,6 @@ test_delayed_pop(void)
> > }
> > }
> >
> > - timeout = 0x10000;
> > -
> > - if (rte_event_dequeue_burst(evdev, 0, &ev, 1, timeout) != 0) {
> > - printf("%d: event dequeue expected to fail\n",
> > - __LINE__);
> > - goto err;
> > - }
> > -
> > cleanup();
> > return 0;
> >
> > --
> > 2.25.1
>
> Looks good.
> Reviewed-by: Mike Ximing Chen <mike.ximing.chen@intel.con>
Please fix
[for-main]dell[dpdk-next-eventdev] $ ./devtools/check-git-log.sh -n 1
Wrong headline format:
event/dlb2: fix delayed_pop test in dlb2_selftest
Missing 'Fixes' tag:
event/dlb2: fix delayed_pop test in dlb2_selftest
next prev parent reply other threads:[~2021-11-15 8:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 19:48 Rashmi Shetty
2021-11-12 20:25 ` Chen, Mike Ximing
2021-11-15 8:29 ` Jerin Jacob [this message]
2021-11-15 16:34 ` [PATCH v2] " Rashmi Shetty
2021-11-16 7:07 ` Jerin Jacob
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=CALBAE1P-di9yfm2oa3ud3fUTdkv7JYB8FKVdQvGV7BcGWLSoNw@mail.gmail.com \
--to=jerinjacobk@gmail.com \
--cc=dev@dpdk.org \
--cc=harry.van.haaren@intel.com \
--cc=jerinj@marvell.com \
--cc=mike.ximing.chen@intel.com \
--cc=pravin.pathak@intel.com \
--cc=rashmi.shetty@intel.com \
--cc=timothy.mcdaniel@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 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).