netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/2] af-packet: Enhance af-packet to provide a flexible mmap ring buffer scheme.
@ 2011-08-19 20:18 Chetan Loke
  2011-08-19 20:18 ` [PATCH net-next v5 1/2] af-packet: Added TPACKET_V3 headers Chetan Loke
  2011-08-19 20:18 ` [PATCH net-next v5 2/2] af-packet: TPACKET_V3 flexible buffer implementation Chetan Loke
  0 siblings, 2 replies; 6+ messages in thread
From: Chetan Loke @ 2011-08-19 20:18 UTC (permalink / raw)
  To: netdev, davem; +Cc: Chetan Loke


Changes in v5:
1) Provide accurate patch description.			(Dave Miller)
   Tightened up patch descriptions.
2) Replace indirect calls with inline tests.		(Dave Miller)
3) Use distinct subject-line per patch.			(Dave Miller)

Changes in v4:
1) Used ALIGN macro                                     (Joe Perches)
2) Deleted duplicate field                              (Eric Dumazet)
3) Re-aligned tpacket fields for disk-capture

Changes in v3:
1) Stripped __packed__ attribute.                       (Dave Miller)
   Replaced with aligned_u64 and padding.
2) Added 'feature_request_word'.
3) Added rx_hash field to the v3-header.                (Chetan L)

Changes in v2:

1) Aligned bdqc members, pr_err to WARN, sob email      (Joe Perches)
2) Added tp_padding                                     (Eric Dumazet)
3) Nuked useless ;) white space                         (Stephen H)
4) Use __u types in headers                             (Ben Hutchings)
5) Added field for creating private area                (Chetan Loke)

Enhanced af-packet to provide a flexible mmap ring buffer scheme by:
A) eliminating fixed frame-size requirement.
B) providing block-level read/poll.

Benefits:
  B1) ~15-20% reduction in cpu-usage.
  B2) ~20% increase in packet capture rate.
  B3) ~2x  increase in packet density(higher capture visibility).
  B4) Capture entire packet payload.
  B5) Captures 99% 64-byte traffic as seen by the kernel.

Detailed description of the enhancement-need/test-setup/etc can be viewed at:
http://thread.gmane.org/gmane.linux.kernel/1158216

Test-suite:
git://lolpcap.git.sourceforge.net/gitroot/lolpcap/lolpcap


----------------------------------------

 include/linux/if_packet.h |  119 ++++++
 net/packet/af_packet.c    |  937 ++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 1010 insertions(+), 46 deletions(-)

-- 
1.7.5.2


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

end of thread, other threads:[~2011-08-25 12:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 20:18 [PATCH net-next v5 0/2] af-packet: Enhance af-packet to provide a flexible mmap ring buffer scheme Chetan Loke
2011-08-19 20:18 ` [PATCH net-next v5 1/2] af-packet: Added TPACKET_V3 headers Chetan Loke
2011-08-25  2:43   ` David Miller
2011-08-25 12:58     ` chetan loke
2011-08-19 20:18 ` [PATCH net-next v5 2/2] af-packet: TPACKET_V3 flexible buffer implementation Chetan Loke
2011-08-25  2:43   ` David Miller

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