DPDK patches and discussions
 help / color / mirror / Atom feed
From: Neil Horman <nhorman@tuxdriver.com>
To: David Marchand <david.marchand@redhat.com>
Cc: Thomas Monjalon <thomas@monjalon.net>,
	"Yigit, Ferruh" <ferruh.yigit@intel.com>,
	dev@dpdk.org, Timothy Redaelli <tredaelli@redhat.com>,
	adrien.mazarguil@6wind.com
Subject: Re: [dpdk-dev] Marking symbols as experimental in the headers only
Date: Wed, 19 Dec 2018 07:39:12 -0500	[thread overview]
Message-ID: <20181219123912.GA15394@hmswarspite.think-freely.org> (raw)
In-Reply-To: <CAJFAV8x1ABxvf51x3DUCvO5aKyB33dh4vc=_nEQVE9k_4oVSRg@mail.gmail.com>

On Wed, Dec 19, 2018 at 10:12:06AM +0100, David Marchand wrote:
> On Tue, Dec 18, 2018 at 1:27 PM David Marchand <david.marchand@redhat.com>
> wrote:
> 
> >
> > On Tue, Dec 18, 2018 at 1:25 PM Neil Horman <nhorman@tuxdriver.com> wrote:
> >
> >> On Tue, Dec 18, 2018 at 11:41:34AM +0100, David Marchand wrote:
> >>
> >> > The real issue in the end is that the __rte_experimental in headers is
> >> the
> >> > most important thing and can be missed during reviews.
> >> > But I found no easy way to detect this.
> >> >
> >> > Do you have any idea ?
> >> >
> >> The most direct way is to add a regular expression search to the script
> >> that
> >> checks the object files.  That would be some tricky grep/awk magic, but it
> >> should be possible
> >>
> >
> So, wrote something that I hooked in rte.lib.mk.
> On a fresh master branch, I can see:
> 
> == Build lib/librte_bbdev
> ERROR: rte_bbdev_dequeue_dec_ops is not marked as experimental in this
> library headers
> ERROR: rte_bbdev_dequeue_enc_ops is not marked as experimental in this
> library headers
> ERROR: rte_bbdev_devices is not marked as experimental in this library
> headers
> ERROR: rte_bbdev_enqueue_dec_ops is not marked as experimental in this
> library headers
> ERROR: rte_bbdev_enqueue_enc_ops is not marked as experimental in this
> library headers
> ERROR: rte_bbdev_op_pool_create is not marked as experimental in this
> library headers
> ERROR: rte_bbdev_op_type_str is not marked as experimental in this library
> headers
> 
> == Build lib/librte_cryptodev
> ERROR: rte_crypto_asym_op_strings is not marked as experimental in this
> library headers
> ERROR: rte_crypto_asym_xform_strings is not marked as experimental in this
> library headers
> 
> == Build lib/librte_vhost
> ERROR: rte_vhost_va_from_guest_pa is not marked as experimental in this
> library headers
> 
> Those warnings seem valid, need to double check (bbdev is already known).
> 
> But my script still needs some work to make it lighter...
> A fresh build went from:
> real    3m25.823s
> user    2m42.026s
> sys    1m2.730s
> to:
> real    3m42.442s
> user    2m56.733s
> sys    1m5.565s
> 
> I think I'd rather adapt it to hook in checkpatches.sh.
> Maintainers can then ignore it when the check is broken (my regexp skills
> are lacking :)).
> 
The fact that you got it to work this well, this quickly, says they're not that
bad to me :).

If you want to post a draft of your patch here, perhaps we can help find ways to
speed it up.

Well done.
Neil

> 
> -- 
> David Marchand

  reply	other threads:[~2018-12-19 12:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-03 13:01 David Marchand
2018-12-03 13:26 ` Ferruh Yigit
2018-12-03 16:47 ` Neil Horman
2018-12-04  8:21   ` David Marchand
2018-12-04 15:14     ` Neil Horman
2018-12-04 20:48       ` David Marchand
2018-12-04 21:34         ` Richardson, Bruce
2018-12-05 12:21         ` Neil Horman
2018-12-05 13:22           ` David Marchand
2018-12-18 10:41             ` David Marchand
2018-12-18 12:25               ` Neil Horman
2018-12-18 12:27                 ` David Marchand
2018-12-19  9:12                   ` David Marchand
2018-12-19 12:39                     ` Neil Horman [this message]
2018-12-19 13:46                       ` David Marchand

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=20181219123912.GA15394@hmswarspite.think-freely.org \
    --to=nhorman@tuxdriver.com \
    --cc=adrien.mazarguil@6wind.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=thomas@monjalon.net \
    --cc=tredaelli@redhat.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).