DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Tummala, Sivaprasad" <Sivaprasad.Tummala@amd.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: "david.hunt@intel.com" <david.hunt@intel.com>,
	"anatoly.burakov@intel.com" <anatoly.burakov@intel.com>,
	"thomas@monjalon.net" <thomas@monjalon.net>,
	 "Yigit, Ferruh" <Ferruh.Yigit@amd.com>,
	"david.marchand@redhat.com" <david.marchand@redhat.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [RFC PATCH 1/2] power: fix power library with --lcores
Date: Mon, 26 Aug 2024 13:43:04 +0000	[thread overview]
Message-ID: <CH3PR12MB82337A99C9EC093E9F9BA9FA868B2@CH3PR12MB8233.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20240724073932.5395f8aa@hermes.local>

[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]

[AMD Official Use Only - AMD Internal Distribution Only]


Hi Stephen,



> -----Original Message-----

> From: Stephen Hemminger <stephen@networkplumber.org>

> Sent: Wednesday, July 24, 2024 8:10 PM

> To: Tummala, Sivaprasad <Sivaprasad.Tummala@amd.com>

> Cc: david.hunt@intel.com; anatoly.burakov@intel.com;

> thomas@monjalon.net; Yigit, Ferruh <Ferruh.Yigit@amd.com>;

> david.marchand@redhat.com; dev@dpdk.org

> Subject: Re: [RFC PATCH 1/2] power: fix power library with --lcores

>

> Caution: This message originated from an External Source. Use proper caution

> when opening attachments, clicking links, or responding.

>

>

> On Wed, 24 Jul 2024 13:03:35 +0000

> Sivaprasad Tummala <sivaprasad.tummala@amd.com<mailto:sivaprasad.tummala@amd.com>> wrote:

>

> > +     lcore_cpus = rte_lcore_cpuset(lcore_id);

> > +     if (CPU_COUNT(&lcore_cpus) != 1) {

> > +             POWER_LOG(ERR, "Power library doesn't support lcore %u mapping

> "

> > +                             "to %u cpus", lcore_id, CPU_COUNT(&lcore_cpus));

> > +             return -1;

> > +     }

> > +     for (cpu = 0; cpu < CPU_SETSIZE; cpu++) {

> > +             if (CPU_ISSET(cpu, &lcore_cpus))

> > +                     break;

> > +     }

>

> You are copy and pasting the same code into multiple places which indicates it

> should be an API function.

ACK! Will fix this in next version.

[-- Attachment #2: Type: text/html, Size: 5010 bytes --]

      reply	other threads:[~2024-08-26 13:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-24 13:03 Sivaprasad Tummala
2024-07-24 13:03 ` [RFC PATCH 2/2] test/power: " Sivaprasad Tummala
2024-07-24 14:38 ` [RFC PATCH 1/2] power: " Stephen Hemminger
2024-07-24 14:39 ` Stephen Hemminger
2024-08-26 13:43   ` Tummala, Sivaprasad [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=CH3PR12MB82337A99C9EC093E9F9BA9FA868B2@CH3PR12MB8233.namprd12.prod.outlook.com \
    --to=sivaprasad.tummala@amd.com \
    --cc=Ferruh.Yigit@amd.com \
    --cc=anatoly.burakov@intel.com \
    --cc=david.hunt@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.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).