* [dpdk-dev] [PATCH] test_mempool: remove unused mp_ext var
@ 2016-07-21 11:49 Santosh Shukla
2016-07-21 13:28 ` Olivier Matz
0 siblings, 1 reply; 4+ messages in thread
From: Santosh Shukla @ 2016-07-21 11:49 UTC (permalink / raw)
To: dev; +Cc: thomas.monjalon, olivier.matz, Santosh Shukla
test_mempool func not using pointer variable 'mp_ext' and incorrectly freed. So
removing ptr var. Now freeing mp_stack var.
Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
---
app/test/test_mempool.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c
index 46ad670..3b21cf7 100644
--- a/app/test/test_mempool.c
+++ b/app/test/test_mempool.c
@@ -506,7 +506,6 @@ test_mempool(void)
{
struct rte_mempool *mp_cache = NULL;
struct rte_mempool *mp_nocache = NULL;
- struct rte_mempool *mp_ext = NULL;
struct rte_mempool *mp_stack = NULL;
rte_atomic32_init(&synchro);
@@ -605,7 +604,7 @@ test_mempool(void)
err:
rte_mempool_free(mp_nocache);
rte_mempool_free(mp_cache);
- rte_mempool_free(mp_ext);
+ rte_mempool_free(mp_stack);
return -1;
}
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] test_mempool: remove unused mp_ext var
2016-07-21 11:49 [dpdk-dev] [PATCH] test_mempool: remove unused mp_ext var Santosh Shukla
@ 2016-07-21 13:28 ` Olivier Matz
2016-07-21 13:35 ` Thomas Monjalon
0 siblings, 1 reply; 4+ messages in thread
From: Olivier Matz @ 2016-07-21 13:28 UTC (permalink / raw)
To: Santosh Shukla, dev; +Cc: thomas.monjalon
Hi Santosh,
On 07/21/2016 01:49 PM, Santosh Shukla wrote:
> test_mempool func not using pointer variable 'mp_ext' and incorrectly freed. So
> removing ptr var. Now freeing mp_stack var.
>
> Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
> ---
> app/test/test_mempool.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c
> index 46ad670..3b21cf7 100644
> --- a/app/test/test_mempool.c
> +++ b/app/test/test_mempool.c
> @@ -506,7 +506,6 @@ test_mempool(void)
> {
> struct rte_mempool *mp_cache = NULL;
> struct rte_mempool *mp_nocache = NULL;
> - struct rte_mempool *mp_ext = NULL;
> struct rte_mempool *mp_stack = NULL;
>
> rte_atomic32_init(&synchro);
> @@ -605,7 +604,7 @@ test_mempool(void)
> err:
> rte_mempool_free(mp_nocache);
> rte_mempool_free(mp_cache);
> - rte_mempool_free(mp_ext);
> + rte_mempool_free(mp_stack);
> return -1;
> }
>
>
Strange, it seems these modifications were present in latest patch from
David Hunt (v6). Maybe a bad manipulation during the push?
The "Fixes:" line should be added though.
Acked-by: Olivier Matz <olivier.matz@6wind.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] test_mempool: remove unused mp_ext var
2016-07-21 13:28 ` Olivier Matz
@ 2016-07-21 13:35 ` Thomas Monjalon
2016-07-21 21:57 ` Thomas Monjalon
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2016-07-21 13:35 UTC (permalink / raw)
To: Olivier Matz, Santosh Shukla; +Cc: dev, David Hunt
2016-07-21 15:28, Olivier Matz:
> Hi Santosh,
>
> On 07/21/2016 01:49 PM, Santosh Shukla wrote:
> > test_mempool func not using pointer variable 'mp_ext' and incorrectly freed. So
> > removing ptr var. Now freeing mp_stack var.
> >
> > Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
> > ---
> > app/test/test_mempool.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c
> > index 46ad670..3b21cf7 100644
> > --- a/app/test/test_mempool.c
> > +++ b/app/test/test_mempool.c
> > @@ -506,7 +506,6 @@ test_mempool(void)
> > {
> > struct rte_mempool *mp_cache = NULL;
> > struct rte_mempool *mp_nocache = NULL;
> > - struct rte_mempool *mp_ext = NULL;
> > struct rte_mempool *mp_stack = NULL;
> >
> > rte_atomic32_init(&synchro);
> > @@ -605,7 +604,7 @@ test_mempool(void)
> > err:
> > rte_mempool_free(mp_nocache);
> > rte_mempool_free(mp_cache);
> > - rte_mempool_free(mp_ext);
> > + rte_mempool_free(mp_stack);
> > return -1;
> > }
> >
> >
>
> Strange, it seems these modifications were present in latest patch from
> David Hunt (v6). Maybe a bad manipulation during the push?
Yes sorry, it seems to be a wrong manipulation, the v5 was pushed.
This patch seems to fix my error, thanks.
> The "Fixes:" line should be added though.
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] test_mempool: remove unused mp_ext var
2016-07-21 13:35 ` Thomas Monjalon
@ 2016-07-21 21:57 ` Thomas Monjalon
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2016-07-21 21:57 UTC (permalink / raw)
To: Santosh Shukla; +Cc: Olivier Matz, dev, David Hunt
2016-07-21 15:35, Thomas Monjalon:
> 2016-07-21 15:28, Olivier Matz:
> > Hi Santosh,
> >
> > On 07/21/2016 01:49 PM, Santosh Shukla wrote:
> > > test_mempool func not using pointer variable 'mp_ext' and incorrectly freed. So
> > > removing ptr var. Now freeing mp_stack var.
> > >
> > > Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
> >
> > Strange, it seems these modifications were present in latest patch from
> > David Hunt (v6). Maybe a bad manipulation during the push?
>
> Yes sorry, it seems to be a wrong manipulation, the v5 was pushed.
> This patch seems to fix my error, thanks.
>
> > The "Fixes:" line should be added though.
Fixes: ea151eb48a04 ("app/test: migrate custom mempool handler to stack handler")
> > Acked-by: Olivier Matz <olivier.matz@6wind.com>
Applied, thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-07-21 21:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-21 11:49 [dpdk-dev] [PATCH] test_mempool: remove unused mp_ext var Santosh Shukla
2016-07-21 13:28 ` Olivier Matz
2016-07-21 13:35 ` Thomas Monjalon
2016-07-21 21:57 ` Thomas Monjalon
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).