DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Sharing NIC port between Linux and DPDK
@ 2015-01-19  6:22 Deepak Sehrawat
  2015-01-19  6:37 ` Zhou, Danny
  0 siblings, 1 reply; 2+ messages in thread
From: Deepak Sehrawat @ 2015-01-19  6:22 UTC (permalink / raw)
  To: dev

Hi All,

What are the various means available (as of now) to share a NIC port
between Linux and DPDK applications? Idea is to separate control packets
and data packets; using Linux userspace application to process control
packets while DPDK application to access/process data packets (same NIC
port is carrying both of these packet traffics; control as well as data).

Note: Bifurcated driver is next step but it's not available as of now.


Thanks,
Deepak

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] Sharing NIC port between Linux and DPDK
  2015-01-19  6:22 [dpdk-dev] Sharing NIC port between Linux and DPDK Deepak Sehrawat
@ 2015-01-19  6:37 ` Zhou, Danny
  0 siblings, 0 replies; 2+ messages in thread
From: Zhou, Danny @ 2015-01-19  6:37 UTC (permalink / raw)
  To: Deepak Sehrawat, dev

DPDK KNI(Kernel NIC interface) is your only option before bifurcated driver is adopted. 
Basically, DPDK rx/tx all packets and do flow classification (e.g. 5-tuple based) in user
space then distribute control plane packets to KNI netdev in kernel space via 
lockless queue based ring. The KNI netdev registers to kernel TCP/IP stack and
push control plane packets all the way up to the Linux user space control plane 
applications.

If you have user space TCP/IP stacks and requires very high control plane performance,
you might take a short path by distributing control plane packets to your applications 
directly. The reason we have KNI is that it could leverage mature enough TCP/IP stacks,
at the cost of CPU cycles.

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Deepak Sehrawat
> Sent: Monday, January 19, 2015 2:23 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Sharing NIC port between Linux and DPDK
> 
> Hi All,
> 
> What are the various means available (as of now) to share a NIC port
> between Linux and DPDK applications? Idea is to separate control packets
> and data packets; using Linux userspace application to process control
> packets while DPDK application to access/process data packets (same NIC
> port is carrying both of these packet traffics; control as well as data).
> 
> Note: Bifurcated driver is next step but it's not available as of now.
> 
> 
> Thanks,
> Deepak

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-19  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19  6:22 [dpdk-dev] Sharing NIC port between Linux and DPDK Deepak Sehrawat
2015-01-19  6:37 ` Zhou, Danny

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).