DPDK patches and discussions
 help / color / mirror / Atom feed
From: Phil Yang <Phil.Yang@arm.com>
To: "Burakov, Anatoly" <anatoly.burakov@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: nd <nd@arm.com>, Jianbo Liu <Jianbo.Liu@arm.com>,
	Herbert Guan <Herbert.Guan@arm.com>
Subject: Re: [dpdk-dev] [PATCH] test/memzone: Fix test_memzone_basic & test_memzone_free issues.
Date: Mon, 15 Jan 2018 05:57:25 +0000	[thread overview]
Message-ID: <AM4PR08MB091317C87E8EAE3B03456433E9EB0@AM4PR08MB0913.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <afa1e290-5d1e-3f40-139e-2f13757e5fb2@intel.com>

Hi Anatoly,

Thanks for your comments. Updated. Please review the version 2.

Thanks,
Phil Yang

> -----Original Message-----
> From: Burakov, Anatoly [mailto:anatoly.burakov@intel.com]
> Sent: Saturday, January 13, 2018 1:44 AM
> To: Phil Yang <Phil.Yang@arm.com>; dev@dpdk.org
> Cc: nd <nd@arm.com>; Jianbo Liu <Jianbo.Liu@arm.com>; Herbert Guan
> <Herbert.Guan@arm.com>
> Subject: Re: [dpdk-dev] [PATCH] test/memzone: Fix test_memzone_basic &
> test_memzone_free issues.
> 
> On 11-Jan-18 9:41 AM, Phil Yang wrote:
> > 1. test_memzone_basic: No need to free a NULL memzone. It will cause
> > test termination.
> > 2. test_memzone_free: Out of mz[RTE_MAX_MEMZONE] memory bound
> while
> > reserving memzone for mz. It will flush variable i. Fix by extend to
> > mz[RTE_MAX_MEMZONE + 1].
> >
> > Signed-off-by: Phil Yang <phil.yang@arm.com>
> > ---
> >   test/test/test_memzone.c | 6 +-----
> >   1 file changed, 1 insertion(+), 5 deletions(-)
> >
> > diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c index
> > 6e80977..24e29a7 100644
> > --- a/test/test/test_memzone.c
> > +++ b/test/test/test_memzone.c
> > @@ -251,10 +251,6 @@ test_memzone_reserve_flags(void)
> >   				printf("MEMZONE FLAG 2MB\n");
> >   				return -1;
> >   			}
> > -			if (rte_memzone_free(mz)) {
> > -				printf("Fail memzone free\n");
> > -				return -1;
> > -			}
> >   		}
> >
> >   		if (hugepage_2MB_avail && hugepage_1GB_avail) { @@ -746,7
> +742,7
> > @@ test_memzone_bounded(void)
> >   static int
> >   test_memzone_free(void)
> >   {
> > -	const struct rte_memzone *mz[RTE_MAX_MEMZONE];
> > +	const struct rte_memzone *mz[RTE_MAX_MEMZONE + 1];
> >   	int i;
> >   	char name[20];
> >
> >
> 
> This should be split into two separate patches, as there are two different issues
> being addressed. Provided that's done,
> 
> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
> 
> --
> Thanks,
> Anatoly

  reply	other threads:[~2018-01-15  5:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-11  9:41 Phil Yang
2018-01-12  5:46 ` Jianbo Liu
2018-01-12 17:43 ` Burakov, Anatoly
2018-01-15  5:57   ` Phil Yang [this message]
2018-01-15  5:43 ` [dpdk-dev] [PATCH 0/2] Fix memzone autotest issues Phil Yang
2018-01-15  5:43   ` [dpdk-dev] [PATCH 1/2] test/memzone: Fix test_memzone_basic issue Phil Yang
2018-01-15  5:43   ` [dpdk-dev] [PATCH 2/2] test/memzone: Fix test_memzone_free issue Phil Yang
2018-01-17 23:41   ` [dpdk-dev] [PATCH 0/2] Fix memzone autotest issues Thomas Monjalon
2018-01-15  5:52 ` [dpdk-dev] [PATCH v2 " Phil Yang
2018-01-15  5:52   ` [dpdk-dev] [PATCH v2 1/2] test/memzone: Fix test_memzone_basic issue Phil Yang
2018-01-15  9:48     ` Burakov, Anatoly
2018-01-15  5:52   ` [dpdk-dev] [PATCH v2 2/2] test/memzone: Fix test_memzone_free issue Phil Yang
2018-01-15  9:49     ` Burakov, Anatoly

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=AM4PR08MB091317C87E8EAE3B03456433E9EB0@AM4PR08MB0913.eurprd08.prod.outlook.com \
    --to=phil.yang@arm.com \
    --cc=Herbert.Guan@arm.com \
    --cc=Jianbo.Liu@arm.com \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=nd@arm.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).