From owner-freebsd-net@FreeBSD.ORG Mon Mar 24 09:15:34 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1CC573EF for ; Mon, 24 Mar 2014 09:15:34 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 85A8D7E3 for ; Mon, 24 Mar 2014 09:15:33 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id n15so3447084lbi.13 for ; Mon, 24 Mar 2014 02:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=lRGcwyj9VbEOrLSLk0uwwTk8Hj4GEUwDQ4S4RdcUWco=; b=nIdDhZFBZMOE/KSgdL++5cGDwwhqLGA1TDpMkNr+rA3xXWhEX6KVeDDR5/pmqg0P9f kndzka/EoI7r9k2g2LjjeE7UrcLr4U4K0EPycnlPLEaqAEMEqBAtWxeNCD4B4b8DSeHL CReEmN6EzT1lEr3Xv6fp0/WrzMPcuSJidB86XJRZNy+MV9u26ZYwtLKbcZg2MMnR76Om Nyic8Bs76F/HRKzg4rJWece29rorxRlebBPdIUcRAU71MwbOhMi+atJ05v25dHSrxQEF Biw1DC5cfjs+LrDnwyVvXHhwPSjlXP5VuBtbYXjXkaJYTwLKgH4jNGtc5S+JtGpz5nLx jN1Q== MIME-Version: 1.0 X-Received: by 10.112.106.40 with SMTP id gr8mr9790420lbb.0.1395652531550; Mon, 24 Mar 2014 02:15:31 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.200.107 with HTTP; Mon, 24 Mar 2014 02:15:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 24 Mar 2014 10:15:31 +0100 X-Google-Sender-Auth: kAcsnjRNg7GwfxT1d1lgbsdNEWQ Message-ID: Subject: Re: Handling Jumbo Packets From: Luigi Rizzo To: soumya panigrahi Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Giuseppe Lettieri , Vincenzo Maffione , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 09:15:34 -0000 On Mon, Mar 24, 2014 at 7:40 AM, soumya panigrahi wrote: > Hi, > > First of all I would like to thank you all for developing an awesome > packet capturing framework. > I have been using it recently and find it very very fast and efficient. > > However off late I am trying to capture Jumbo packets on the network for > the following scenario's but that doesn't seem to be working. > the sysctl tree dev.netmap (on FreeBSD) or the filesystem /sys/module/netmap_lin/parameters (on Linux) have a number of parameters that control buffer numbers and sizes. In particular "buf_size" is used to allocate packet buffers and you can bump it up from 2048 to something larger to accommodate jumbo buffers. Depending on the NIC you may need to do something in the initialization of the NIC itself to allow sending/receiving frames larger than 1518 bytes, but I'd just try and see whether it works for you now. cheers luigi > Please suggest in its present form is NetMap capable of handling the below > scenario's w.r.t Jumbo frames? If how do we have to some special handling > w.r.t to this? > > 1) Netmap is receiving un-fragmented Jumbo frame. In this case is NetMap > capable of passing on the Jumbo packet to the user? > 2) Netmap receving fragmented Jumbo frames. In this case is NetMap > capable of reassembling the fragmented packets and deliver the assembled > packet to the user? > > I have been stuck with this issue for some time now. A quick response > would help a great deal. > > Thanks, > Soumya Panigrahi > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------