From: Bruce Richardson <bruce.richardson@intel.com>
To: "Qiu, Michael" <michael.qiu@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] testpmd: Fix wrong message in testpmd
Date: Wed, 8 Jul 2015 10:04:41 +0100 [thread overview]
Message-ID: <20150708090441.GA152@bricha3-MOBL3> (raw)
In-Reply-To: <533710CFB86FA344BFBF2D6802E60286046B2833@SHSMSX101.ccr.corp.intel.com>
On Wed, Jul 08, 2015 at 07:16:21AM +0000, Qiu, Michael wrote:
> Any comments? This is a bug fix, not a feature.
>
> Thanks,
> Michael
>
> On 6/24/2015 3:56 PM, Qiu, Michael wrote:
> > When close one port twice, testpmd will give out wrong messagse.
> >
> > testpmd> port stop 0
> > Stopping ports...
> > Checking link statuses...
> > Port 0 Link Up - speed 0 Mbps - full-duplex
> > Port 1 Link Up - speed 0 Mbps - full-duplex
> > Done
> > testpmd> port close 0
> > Closing ports...
> > Done
> > testpmd> port close 0
> > Closing ports...
> > Port 0 is now not stopped
> > Done
> > testpmd>
> >
> >
> > Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> > ---
> > app/test-pmd/testpmd.c | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
> > index 3057791..907cda3 100644
> > --- a/app/test-pmd/testpmd.c
> > +++ b/app/test-pmd/testpmd.c
> > @@ -1534,6 +1534,12 @@ close_port(portid_t pid)
> >
> > port = &ports[pi];
> > if (rte_atomic16_cmpset(&(port->port_status),
> > + RTE_PORT_CLOSED, RTE_PORT_CLOSED) == 1) {
> > + printf("Port %d is already closed\n", pi);
> > + continue;
> > + }
> > +
> > + if (rte_atomic16_cmpset(&(port->port_status),
> > RTE_PORT_STOPPED, RTE_PORT_HANDLING) == 0) {
> > printf("Port %d is now not stopped\n", pi);
> > continue;
I know it's not part of your change, but "Now not stopped" doesn't really seem
right to me. What is the message actually trying to report?
/Bruce
>
next prev parent reply other threads:[~2015-07-08 9:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 7:56 Michael Qiu
2015-07-08 7:16 ` Qiu, Michael
2015-07-08 9:04 ` Bruce Richardson [this message]
2015-07-28 18:44 ` Qiu, Michael
2015-07-29 22:20 ` Thomas Monjalon
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=20150708090441.GA152@bricha3-MOBL3 \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=michael.qiu@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).