From: Stephen Hemminger Subject: Re: [RFC 1/2] netmap: infrastructure (in staging) Date: Fri, 19 Apr 2013 13:16:32 -0700 Message-ID: <20130419131632.31fce894@nehalam.linuxnetplumber.net> References: <20130419120651.4e646976@nehalam.linuxnetplumber.net> <20130419194537.GA1633@kroah.com> <20130419.155859.1092595631804890737.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: gregkh@linuxfoundation.org, netdev@vger.kernel.org To: David Miller Return-path: Received: from mail-pd0-f171.google.com ([209.85.192.171]:54118 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135Ab3DSURE (ORCPT ); Fri, 19 Apr 2013 16:17:04 -0400 Received: by mail-pd0-f171.google.com with SMTP id t12so288656pdi.2 for ; Fri, 19 Apr 2013 13:17:03 -0700 (PDT) In-Reply-To: <20130419.155859.1092595631804890737.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 19 Apr 2013 15:58:59 -0400 (EDT) David Miller wrote: > From: Greg KH > Date: Fri, 19 Apr 2013 12:45:37 -0700 > > > On Fri, Apr 19, 2013 at 12:06:51PM -0700, Stephen Hemminger wrote: > >> Netmap is a framework for packet generation and capture from user > >> space. It allows for efficient packet handling (up to line rate on > >> 10Gb) with minimum system load. For more info see: > >> http://info.iet.unipi.it/~luigi/netmap/ > > So are you saying that people can't get line rate today? > > Even the the suricata folks are doing deep packet inspection at line > rate using AF_PACKET fanouts just fine. That means they aren't just > grabbing packets, they are actually processing them and making > stateful decisions based upon the packet's contents. > > That means that capture is cheap enough already that they have all > the compute left over that they need. > > The existing mechanisms also have the huge advantage that they are > already implemented, require zero driver specific changes, and are > already starting to be deployed to end users. > > Given that and how incredibly gross this code is right now, the only > reaction I can have is "meh". > > If you are going to propose something, please show a real and genuine > need. I can not get line rate output with pktgen on existing kernels today. I can get line rate easily with netmap.