From: Edgar Toernig <froese@gmx.de>
To: Michael Clark <michael@metaparadigm.com>
Cc: Manfred Bartz <md-linux-kernel@logi.cc>,
linux-kernel@vger.kernel.org, linux-net@vger.kernel.org
Subject: Re: Real Time Traffic Flow Measurement - anybody working on it?
Date: Thu, 19 Apr 2001 23:35:22 +0200 [thread overview]
Message-ID: <3ADF5A1A.CE914410@gmx.de> (raw)
In-Reply-To: <HBEEKENFCJOPCENEDAGHOEAECCAA.michael@metaparadigm.com>
Hi,
Michael Clark wrote:
>
> An obvious kernel improvement for userspace meters like NeTraMet would
> be to give libpcap's pcap_read a kernel interface that can return more
> than one packet at a time (the libpcap interface has this capability).
It's already there - the turbo packet interface (PACKET_RX_RING sockopt).
Very nice and fast. Direct transfer to mmapped memory.
> An additional feature for network devices that could support it (not
> sure if this is feasible) would be to switch to an 'interrupt when
> packet buffer full' when in promiscuous mode.
With the RX_RING you can poll a memory location in the mmapped memory
to detect whether there are new packets. You basically only perform
a system call (poll/select) if there's nothing more to do.
Ciao, ET.
next prev parent reply other threads:[~2001-04-20 0:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-19 4:15 Real Time Traffic Flow Measurement - anybody working on it? Manfred Bartz
2001-04-19 14:45 ` Michael Clark
2001-04-19 21:35 ` Edgar Toernig [this message]
2001-04-20 16:58 ` Harald Welte
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=3ADF5A1A.CE914410@gmx.de \
--to=froese@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=md-linux-kernel@logi.cc \
--cc=michael@metaparadigm.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