DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Shaiq Wani <shaiq.wani@intel.com>
Cc: dev@dpdk.org, bruce.richardson@intel.com
Subject: Re: [PATCH v4] net/cpfl: get running host ID for CPFL PMD
Date: Tue, 4 Jun 2024 09:17:41 -0700	[thread overview]
Message-ID: <20240604091741.3855caf0@hermes.local> (raw)
In-Reply-To: <20240530093958.801348-1-shaiq.wani@intel.com>

On Thu, 30 May 2024 09:39:58 +0000
Shaiq Wani <shaiq.wani@intel.com> wrote:

> +	if (uname(&unamedata) != 0)
> +		PMD_INIT_LOG(ERR, "Cannot fetch node_name for host\n");
> +	else if (strstr(unamedata.nodename, "ipu-imc"))
> +		PMD_INIT_LOG(ERR, "CPFL PMD cannot be running on IMC.");
> +	else if (strstr(unamedata.nodename, "ipu-acc"))
> +		host_id = CPFL_HOST_ID_ACC;

The nodename in uname is the same as the hostname.
This can be changed by user, is that ok?

Also, please put one blank line between functions, it makes code easier to read.

  reply	other threads:[~2024-06-04 16:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24  4:05 [PATCH v3] " Shaiq Wani
2024-05-30  9:39 ` [PATCH v4] " Shaiq Wani
2024-06-04 16:17   ` Stephen Hemminger [this message]
2024-06-05  5:48     ` Wani, Shaiq
2024-06-05 18:05       ` Stephen Hemminger
2024-06-06 10:44   ` [PATCH v5] " Shaiq Wani
2024-06-13 15:36     ` Stephen Hemminger

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=20240604091741.3855caf0@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=shaiq.wani@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).