DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: dev@dpdk.org, stephen@networkplumber.org, aconole@redhat.com,
	pmatilai@redhat.com, rolette@infiniteio.com,
	christian.ehrhardt@canonical.com
Subject: [dpdk-dev] Replacing KCP (Kernel Control Path) out-of-tree kernel module with	in-kernel module
Date: Tue, 16 Feb 2016 14:48:30 +0000	[thread overview]
Message-ID: <20160216144830.GA2297@sivlogin002.ir.intel.com> (raw)


This is continuation of previous mail thread:
	http://dpdk.org/ml/archives/dev/2016-February/032701.html

Since there were no comments, I want to give another try, this can be good opportunity to escape from out-of-kernel Linux module.

First high level important question:
- Do you think will Linux community welcome a network driver that enables/supports userspace network driver?


And let me rephrase what I have in my mind:
- Implement a Linux network driver, that uses rtnetlink, so that userspace applications can create network interfaces.
- This driver implements net_device_ops as a forwarding layer to userspace; using netlink sockets.
- Each userspace network driver has a unique identifier.
- Userspace drivers listens netlink group created by kernel driver.
- An application, or userspace driver itself, attaches userspace driver, by providing its unique id, to the created network interface. This associates network interface to userspace driver.
- After this point userspace driver detects its own id in netlink messages and responds back to the requests.
- Anytime userspace driver can be detached and network interface can be removed by a userspace application.

I believe this can work, but not sure if this worths to the investment because this can be quite some work. Also not sure if this gets accepted by Linux upstream.
I would like to have some support/feedback to undertake something like this.

Any comment is welcome.


Thanks,
ferruh

             reply	other threads:[~2016-02-16 14:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 14:48 Ferruh Yigit [this message]
2016-02-16 15:06 ` Aaron Conole

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=20160216144830.GA2297@sivlogin002.ir.intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=aconole@redhat.com \
    --cc=christian.ehrhardt@canonical.com \
    --cc=dev@dpdk.org \
    --cc=pmatilai@redhat.com \
    --cc=rolette@infiniteio.com \
    --cc=stephen@networkplumber.org \
    /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).