DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: konstantin.ananyev@intel.com, thomas@monjalon.net,
	john.griffin@intel.com, fiona.trahe@intel.com, dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH 3/4] ether: rename version file to match library name
Date: Thu, 31 Aug 2017 15:32:32 +0100	[thread overview]
Message-ID: <20170831143232.GA7984@bricha3-MOBL3.ger.corp.intel.com> (raw)
In-Reply-To: <298d123d-2d55-c702-cc14-6dab9eff9ebd@intel.com>

On Thu, Aug 31, 2017 at 03:18:47PM +0100, Ferruh Yigit wrote:
> On 8/31/2017 2:42 PM, Bruce Richardson wrote:
> > While almost all libraries have the library name match the directory name,
> > some libraries and drivers do not. For those that don't, some have the
> > version filename use the libname, e.g. null_crypto, others have it use the
> > directory name, e.g. ether. Using the library name seems the better
> > standard to follow, so rename rte_ether_version.map to
> > rte_ethdev_version.map.
> > 
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > ---
> >  lib/librte_ether/Makefile                                          | 2 +-
> >  lib/librte_ether/{rte_ether_version.map => rte_ethdev_version.map} | 0
> >  2 files changed, 1 insertion(+), 1 deletion(-)
> >  rename lib/librte_ether/{rte_ether_version.map => rte_ethdev_version.map} (100%)
> > 
> > diff --git a/lib/librte_ether/Makefile b/lib/librte_ether/Makefile
> > index db692ae4d..27d9766a8 100644
> > --- a/lib/librte_ether/Makefile
> > +++ b/lib/librte_ether/Makefile
> > @@ -39,7 +39,7 @@ LIB = librte_ethdev.a
> >  CFLAGS += -O3
> >  CFLAGS += $(WERROR_FLAGS)
> >  
> > -EXPORT_MAP := rte_ether_version.map
> > +EXPORT_MAP := rte_ethdev_version.map
> 
> Why library name and folder name is different for ethdev, will it break
> anything if folder also renamed to librte_ethdev? for consistency.
> 

Probably not, but it would be a much more visible change than just
changing the map filename, so I left it as-is for now. For the drivers,
there a quite a number of instances where the driver name is not going
to match the directory name, e.g  to include "crypto" or "event" for
clarity in the resulting library name. Because of that, I'm adding
support for allowing drivers to specify their name independently of the
directory name, and for consistency, I'm going to allow doing so for
libs too, since I want both drivers and libs to take more-or-less the
same set of parameters in their build files.

That said, no objection to a more comprehensive patch to rename the
folder. :-)

/Bruce

  reply	other threads:[~2017-08-31 14:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-31 13:42 [dpdk-dev] [PATCH 0/4] minor cleanup of filenames and deps Bruce Richardson
2017-08-31 13:42 ` [dpdk-dev] [PATCH 1/4] ip_frag: change map filename to standardized value Bruce Richardson
2017-08-31 13:42 ` [dpdk-dev] [PATCH 2/4] net/ring: " Bruce Richardson
2017-08-31 13:42 ` [dpdk-dev] [PATCH 3/4] ether: rename version file to match library name Bruce Richardson
2017-08-31 14:18   ` Ferruh Yigit
2017-08-31 14:32     ` Bruce Richardson [this message]
2017-08-31 13:42 ` [dpdk-dev] [PATCH 4/4] crypto/qat: remove dependency on ether library Bruce Richardson
2017-08-31 14:15 ` [dpdk-dev] [PATCH 0/4] minor cleanup of filenames and deps Ferruh Yigit
2017-08-31 14:34   ` Bruce Richardson
2017-08-31 15:26     ` Thomas Monjalon
2017-08-31 21:03       ` 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=20170831143232.GA7984@bricha3-MOBL3.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=fiona.trahe@intel.com \
    --cc=john.griffin@intel.com \
    --cc=konstantin.ananyev@intel.com \
    --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).