DPDK patches and discussions
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@6wind.com>
To: 이근홍 <dlrmsghd@gmail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [ethdev] Multiple devices with single PCI
Date: Thu, 28 Aug 2014 14:42:02 +0200	[thread overview]
Message-ID: <CALwxeUuZtB8_pD8kT2CuLph=MsSp1KWMPvqJRL4OTC5OomUa_g@mail.gmail.com> (raw)
In-Reply-To: <CAKBXKmCi1UMBySckOEVurQoS916O-6gMfFpTETOKkkNzj=ZLpA@mail.gmail.com>

Hello,

On Thu, Aug 28, 2014 at 12:54 PM, 이근홍 <dlrmsghd@gmail.com> wrote:

> I found that DPDK has an abstraction for having multiple devices with
> single PCI.
> (RTE_PCI_DRV_MULTIPLE flag)
> However, their is a naming collision while registering multiple devices.
> Here is my possible solution.
>

- Actually, I think this flag could just disappear.
It had been added at a time when ethdev objects could only be created
through eth_drivers.
Right now, a pci driver can create ethdev objects using
rte_eth_dev_allocate(thenameyouwant).
So I would rather propose you convert your driver from a eth_driver to a
pci_driver.

It is not that hard, you only need to allocate your own private structure
and ensure the mandatory fields are filled.
You can look at rte_eth_dev_init() to see what is needed.


- Thomas, RTE_PCI_DRV_MULTIPLE deprecation for 1.8.x ?


-- 
David Marchand

  reply	other threads:[~2014-08-28 12:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-28 10:54 이근홍
2014-08-28 12:42 ` David Marchand [this message]
2014-08-28 12:46   ` 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='CALwxeUuZtB8_pD8kT2CuLph=MsSp1KWMPvqJRL4OTC5OomUa_g@mail.gmail.com' \
    --to=david.marchand@6wind.com \
    --cc=dev@dpdk.org \
    --cc=dlrmsghd@gmail.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).