All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Shreyansh Jain <shreyansh.jain@nxp.com>
Cc: "david.marchand@6wind.com" <david.marchand@6wind.com>,
	dev@dpdk.org, "nhorman@tuxdriver.com" <nhorman@tuxdriver.com>
Subject: Re: [PATCH v2] drivers: prefix driver REGISTER macro with RTE PMD
Date: Sun, 09 Oct 2016 21:50:56 +0200	[thread overview]
Message-ID: <4525292.xovB97rfbE@xps13> (raw)
In-Reply-To: <DB5PR0401MB205405EE94FDB4A25437138290D80@DB5PR0401MB2054.eurprd04.prod.outlook.com>

2016-10-09 15:12, Shreyansh Jain:
> From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]
> > 2016-10-08 23:35, Shreyansh Jain:
> > > +PMDINFO_TO_O = if grep -E 'RTE_PMD_REGISTER_PCI\([0-9a-zA-Z,_\.
> > ]+\)|RTE_PMD_REGISTER_VDEV\([0-9a-zA-Z,_\. ]+\)' $<;\
> > > +       then \
> > 
> > I don't understand why you don't simply grep 'RTE_PMD_REGISTER_.*(' ?
> 
> Because I want to make sure that the grep matches only the DRIVER registration functions.
> In case a new macro (or driver type) is added in future, this macro can be updated. This way we can reduce the probability of a faulty match.
> 
> Is there a problem with closest possible match?

It is just long and useless. A macro starting with RTE_PMD_REGISTER_ must
be called from a PMD. What else?

  reply	other threads:[~2016-10-09 19:50 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 13:33 [PATCH 1/3] eal/drivers: prefix driver REGISTER macros with EAL Shreyansh Jain
2016-10-07 13:33 ` [PATCH 2/3] eal/drivers: prefix VDEV driver REGISTER macro " Shreyansh Jain
2016-10-07 13:33 ` [PATCH 3/3] eal/drivers: prefix driver param " Shreyansh Jain
2016-10-07 13:41 ` [PATCH 1/3] eal/drivers: prefix driver REGISTER macros " Shreyansh Jain
2016-10-07 13:51   ` Thomas Monjalon
2016-10-07 14:18     ` Neil Horman
2016-10-08 13:01       ` Shreyansh Jain
2016-10-08 13:00     ` Shreyansh Jain
2016-10-10 12:56       ` Neil Horman
2016-10-11  6:36         ` Shreyansh Jain
2016-10-11  7:27           ` Thomas Monjalon
2016-10-11 13:38           ` Neil Horman
2016-10-11 13:57             ` Thomas Monjalon
2016-10-11 14:57               ` Neil Horman
2016-10-12  4:29                 ` Shreyansh Jain
2016-10-07 13:45 ` Thomas Monjalon
2016-10-08 12:47   ` Shreyansh Jain
2016-10-17 13:09     ` Neil Horman
2016-10-08 18:01 ` [PATCH v1] drivers: prefix driver REGISTER macro with RTE EAL Shreyansh Jain
2016-10-08 18:02   ` Shreyansh Jain
2016-10-08 18:05   ` [PATCH v2] drivers: prefix driver REGISTER macro with RTE PMD Shreyansh Jain
2016-10-08 20:21     ` Thomas Monjalon
2016-10-09 15:12       ` Shreyansh Jain
2016-10-09 19:50         ` Thomas Monjalon [this message]
2016-10-10  5:11           ` Shreyansh Jain
2016-10-10  5:16             ` Shreyansh Jain
2016-10-10  5:43   ` [PATCH v3] " Shreyansh Jain
2016-10-13 23:45     ` 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=4525292.xovB97rfbE@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=david.marchand@6wind.com \
    --cc=dev@dpdk.org \
    --cc=nhorman@tuxdriver.com \
    --cc=shreyansh.jain@nxp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.