DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Where is the Kernel NIC interface example in the source code?
@ 2013-06-26 23:54 Peter Chen
  2013-06-27  0:21 ` Stephen Hemminger
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Chen @ 2013-06-26 23:54 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

This is in the sample application guide. I want to use tcpdump on the dpdk
port, however its not in the examples folder of the source code...was it
accidentally left out?

[-- Attachment #2: Type: text/html, Size: 196 bytes --]

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

* Re: [dpdk-dev] Where is the Kernel NIC interface example in the source code?
  2013-06-26 23:54 [dpdk-dev] Where is the Kernel NIC interface example in the source code? Peter Chen
@ 2013-06-27  0:21 ` Stephen Hemminger
  2013-06-27 16:20 ` Thomas Monjalon
  2013-06-28 14:05 ` Antti Kantee
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2013-06-27  0:21 UTC (permalink / raw)
  To: Peter Chen; +Cc: dev

On Wed, 26 Jun 2013 16:54:06 -0700
Peter Chen <peter.feifan.chen@gmail.com> wrote:

> This is in the sample application guide. I want to use tcpdump on the dpdk
> port, however its not in the examples folder of the source code...was it
> accidentally left out?

When you use DPDK, the application gets raw control over the hardware.
The kernel device (used by tcpdump) is gone. Since it is a pure application
with responsibility for everything, you could write a capture application
that writes a pcap format file. Part of the downside of something like DPDK
is that sharing device with system is hard.

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

* Re: [dpdk-dev] Where is the Kernel NIC interface example in the source code?
  2013-06-26 23:54 [dpdk-dev] Where is the Kernel NIC interface example in the source code? Peter Chen
  2013-06-27  0:21 ` Stephen Hemminger
@ 2013-06-27 16:20 ` Thomas Monjalon
  2013-06-28 14:05 ` Antti Kantee
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2013-06-27 16:20 UTC (permalink / raw)
  To: Peter Chen; +Cc: dev

27/06/2013 01:54, Peter Chen :
> This is in the sample application guide. I want to use tcpdump on the dpdk
> port, however its not in the examples folder of the source code...was it
> accidentally left out?

The doc you are reading is about DPDK 1.3.1. The source code is not yet 
released on dpdk.org but it should happen soon.

-- 
Thomas

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

* Re: [dpdk-dev] Where is the Kernel NIC interface example in the source code?
  2013-06-26 23:54 [dpdk-dev] Where is the Kernel NIC interface example in the source code? Peter Chen
  2013-06-27  0:21 ` Stephen Hemminger
  2013-06-27 16:20 ` Thomas Monjalon
@ 2013-06-28 14:05 ` Antti Kantee
  2 siblings, 0 replies; 4+ messages in thread
From: Antti Kantee @ 2013-06-28 14:05 UTC (permalink / raw)
  To: dev

On 27.6.2013 2:54, Peter Chen wrote:
> This is in the sample application guide. I want to use tcpdump on the dpdk
> port, however its not in the examples folder of the source code...was it
> accidentally left out?

If you run a rump kernel on top of dpdk, hijacking the normal tcpdump 
binary against the rump kernel should work in theory.  I say "in theory" 
because:

1) the rump kernel dpdk driver not contain support.  ok, it's literally 
two lines of code, but it's still currently theoretical
2) there might be some disagreement with ioctl's and bpf format between 
the Linux userland and NetBSD kernel, requiring some further hacking

Of course, if you don't want TCP/IP at all, the benefit is also 
theoretical ;)

   - antti

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

end of thread, other threads:[~2013-06-28 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-26 23:54 [dpdk-dev] Where is the Kernel NIC interface example in the source code? Peter Chen
2013-06-27  0:21 ` Stephen Hemminger
2013-06-27 16:20 ` Thomas Monjalon
2013-06-28 14:05 ` Antti Kantee

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