From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>
Cc: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>, dev@dpdk.org
Subject: Re: [dpdk-dev] specific driver API - was bypass code cleanup
Date: Mon, 11 Jul 2016 12:19:31 +0200 [thread overview]
Message-ID: <10057084.veiWr8cPc7@xps13> (raw)
In-Reply-To: <2601191342CEEE43887BDE71AB97725836B7C7F1@irsmsx105.ger.corp.intel.com>
2016-07-11 09:56, Ananyev, Konstantin:
>
> > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> > > > Hmmm. It's true it is cleaner. But I am not sure having a generic API
> > > > for bypass is a good idea at all.
> > > > I was thinking to totally remove it.
> > >
> > > Why to remove it?
> > > As I know there are people who use that functionality.
> > >
> > > > Maybe we can try to have a specific API by including ixgbe_bypass.h in
> > > > the application.
> > >
> > > Hmm, isn't that what we were trying to get rid of in last few years?
> > > HW specific stuff?
> >
> > Yes exactly.
> > I have the feeling the bypass API is specific to ixgbe. Isn't it?
>
> As far as I know, yes.
>
> > As we will probably see other features specific to only one device.
> > Instead of adding a function in the generic API, I think it may be
> > saner to include a driver header.
>
> But that means use has to make decision based on HW id/type of the device,
> the thing we were trying to get rid of in last few releases, no?
Not really. If an application requires the bypass feature, we can assume
it will be used only on ixgbe NICs.
Having some generic APIs helps to deploy DPDK applications on heterogeous
machines. But if an application rely on something hardware specific, there
is no benefit of using a "fake generic layer" I guess.
> > Then if it appears to be used
> > in more devices, it can be generalized.
> > What do you think of this approach?
>
> We talked few times about introducing sort of ioctl() call, to communicate
> about HW specific features.
> Might be a bypass I a good candidate to be moved into this ioctl() thing...
I don't see how making an ioctl-like would be better than directly including
a specific header.
> But I suppose it's too late for 16.07 to start such big changes.
Of course yes.
> If you don't like bypass API to be a generic one, my suggestion would be
> to leave it as it is for 16.07, and start a discussion what it should look like
> for 16.11.
That's what we are doing here.
I've changed the title to give a better visibility to the thread.
next prev parent reply other threads:[~2016-07-11 10:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-11 6:21 [dpdk-dev] [PATCH] lib/librte_ether: " Wenzhuo Lu
2016-07-11 7:11 ` Thomas Monjalon
2016-07-11 8:09 ` Lu, Wenzhuo
2016-07-11 8:18 ` Ananyev, Konstantin
2016-07-11 9:19 ` Thomas Monjalon
2016-07-11 9:56 ` Ananyev, Konstantin
2016-07-11 10:19 ` Thomas Monjalon [this message]
2016-07-11 10:39 ` [dpdk-dev] specific driver API - was " Ananyev, Konstantin
2016-07-11 7:50 ` [dpdk-dev] [PATCH] lib/librte_ether: " Wu, Jingjing
2016-07-11 8:09 ` Lu, Wenzhuo
2016-07-11 8:29 ` [dpdk-dev] [PATCH v2] app/testpmd: " Wenzhuo Lu
2016-07-11 13:18 ` 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=10057084.veiWr8cPc7@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=konstantin.ananyev@intel.com \
--cc=wenzhuo.lu@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).