[dpdk-dev] testpmd: fix typo when closing port
Commit Message
Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
app/test-pmd/testpmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
2016-06-08 16:20, Pablo de Lara:
> if (rte_atomic16_cmpset(&(port->port_status),
> RTE_PORT_HANDLING, RTE_PORT_CLOSED) == 0)
> - printf("Port %d can not be set into stopped\n", pi);
> + printf("Port %d can not be set into closed\n", pi);
My english would say "Port cannot be closed".
Am I wrong?
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> Sent: Wednesday, June 8, 2016 5:29 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] testpmd: fix typo when closing port
>
> 2016-06-08 16:20, Pablo de Lara:
> > if (rte_atomic16_cmpset(&(port->port_status),
> > RTE_PORT_HANDLING, RTE_PORT_CLOSED) == 0)
> > - printf("Port %d can not be set into stopped\n", pi);
> > + printf("Port %d can not be set into closed\n", pi);
>
> My english would say "Port cannot be closed".
> Am I wrong?
Yes, that is better or "Port cannot be set to closed" if "closed" is a
state like here.
2016-06-08 17:18, Mcnamara, John:
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> > 2016-06-08 16:20, Pablo de Lara:
> > > if (rte_atomic16_cmpset(&(port->port_status),
> > > RTE_PORT_HANDLING, RTE_PORT_CLOSED) == 0)
> > > - printf("Port %d can not be set into stopped\n", pi);
> > > + printf("Port %d can not be set into closed\n", pi);
> >
> > My english would say "Port cannot be closed".
> > Am I wrong?
>
> Yes, that is better or "Port cannot be set to closed" if "closed" is a
> state like here.
Applied with John's proposal.
@@ -1515,7 +1515,7 @@ close_port(portid_t pid)
if (rte_atomic16_cmpset(&(port->port_status),
RTE_PORT_HANDLING, RTE_PORT_CLOSED) == 0)
- printf("Port %d can not be set into stopped\n", pi);
+ printf("Port %d can not be set into closed\n", pi);
}
printf("Done\n");