DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Matthew Hall <mhall@mhcomputing.net>,
	"Liang, Cunming" <cunming.liang@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] eal/linux: fix negative value for undetermined numa_node
Date: Mon, 03 Aug 2015 19:19:46 +0200	[thread overview]
Message-ID: <1673557.cjtS5G2rXq@xps13> (raw)
In-Reply-To: <20150803050441.GA8325@mhcomputing.net>

2015-08-02 22:04, Matthew Hall:
> On Mon, Aug 03, 2015 at 09:46:54AM +0800, Liang, Cunming wrote:
> > According to the API definition, if the socket could not be determined, a
> > default of zero will take.
> > The '-1' is returned when the port_id value is out of range.
> 
> Yes, but when I asked the exact same question and was told the documentation 
> was wrong not the -1 return value.

It was an error.
The correct API, as defined, is to return 0 when there is no NUMA.
This patch now reverts this one:
	http://dpdk.org/browse/dpdk/commit/?id=a4ff75496a18
Thanks Matthew for helping to clarify it.

> Sure, if nobody objects like the last time I asked. But this will change the 
> user behavior as I am looking for the -1 now.

You're right. But this fix follows the defined API, so it's rather an API fix
than an API break.

Applied, thanks

      reply	other threads:[~2015-08-03 17:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-08  6:33 [dpdk-dev] [PATCH v1] app/test: fix pmd_perf issue in no NUMA case Cunming Liang
2015-06-08  7:01 ` Jayakumar, Muthurajan
2015-06-22 21:01 ` Thomas Monjalon
2015-06-23  1:45   ` Liang, Cunming
2015-07-31  1:36     ` [dpdk-dev] [PATCH] eal/linux: fix negative value for undetermined numa_node Cunming Liang
2015-08-01  3:56       ` Matthew Hall
2015-08-03  1:46         ` Liang, Cunming
2015-08-03  5:04           ` Matthew Hall
2015-08-03 17:19             ` Thomas Monjalon [this message]

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=1673557.cjtS5G2rXq@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=cunming.liang@intel.com \
    --cc=dev@dpdk.org \
    --cc=mhall@mhcomputing.net \
    /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).