From owner-freebsd-net@freebsd.org Tue Jun 7 12:50:57 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5824B6D454 for ; Tue, 7 Jun 2016 12:50:57 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4968F1875 for ; Tue, 7 Jun 2016 12:50:57 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mail-lf0-x22f.google.com with SMTP id b73so114310299lfb.3 for ; Tue, 07 Jun 2016 05:50:57 -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:from:date:message-id :subject:to:cc; bh=FgQl+FARYrxIzpniJ77q5EwozxOnPxY7Ajr+JHShlrE=; b=b+LOhI+Dd5AUIIWjGvsqc2mEyf0tGQRG4apxEF5q43ih1yIRRwK14Gb2jmloVE7IHx macjv42maFnPdyZD2WsVvO51hxgt7hgkxHJkFmXuoYfbW+3hz+ICD2I0lSxXaRvrZx2C HRcD03Zz57wT7cTki9Ob7t/0I20eKrIFoMhY5qA+zBRKkR9OprvoJAU36ULp+2rR+unI LN/5LMU5fVIQHmHuFyhfjIRzj179aitNSSzEtoWk+guDPFZx9Xd6Nri0TU67B1ampYAQ +n1TldZH8/Uvd/Psb8P0oNhq0zIGm8Xpmd/XJ6yRtOh41uycvkBe0G7PFSVtvP5B8TFC VlvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FgQl+FARYrxIzpniJ77q5EwozxOnPxY7Ajr+JHShlrE=; b=Ag/RcumnrYpJHLIAZusCs6TD2AJa1lMh2OjfdNTpNB86fgizw1rveilun73h5M3LYQ 4XJzp3JoLWOKBxinb5BXxaMLIIlBs64LWAqEPjC1LRLwi+fxU2gzGYzr6RBNRfKy26Nc LjnxagVoi+2Vy2R/ghJgQBbXuE4kxCbVOSlPumxnIJmDcaXP6355qbYtdQB00Yn4s2tI ZI/mlhOfrzvXBCi7IR3SpirmncmeEfLFG55LnKujcHR9BK3cVFw4Ro5+eS9Fhk8DXqza /Ym55TQn4fdie5ic8CFquCch9XmFrCQ8T2o/ec9tsLdeqc7Pu3aX0ERAcCemMMdiRCJ+ TlRQ== X-Gm-Message-State: ALyK8tIR+csQUeQyO+19QFusZZC7u/oSL9UgHKBW5TvM0V03m4KITHMPUIN9lwmtXoeVBj/LlJHgbaB0ci2AMw== X-Received: by 10.25.167.6 with SMTP id q6mr2387807lfe.173.1465303855379; Tue, 07 Jun 2016 05:50:55 -0700 (PDT) MIME-Version: 1.0 Sender: rizzo.unipi@gmail.com Received: by 10.114.182.76 with HTTP; Tue, 7 Jun 2016 05:50:54 -0700 (PDT) In-Reply-To: <5756C17D.1090409@yandex.ru> References: <5756C17D.1090409@yandex.ru> From: Luigi Rizzo Date: Tue, 7 Jun 2016 14:50:54 +0200 X-Google-Sender-Auth: cKJNKAWpVtXBk84IMrbWG_uu754 Message-ID: Subject: Re: Is netmap jumbo frames broken in STABLE? To: "Andrey V. Elsukov" Cc: Andrew Vylegzhanin , "freebsd-net@freebsd.org" , Ryan Stone Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2016 12:50:57 -0000 On Tue, Jun 7, 2016 at 2:43 PM, Andrey V. Elsukov wrote= : > On 07.06.16 15:22, Andrew Vylegzhanin wrote: > > Just for support Luigi assumption. > > > > I've tested on 11.0-ALPHA1 (r301204). > > Same situation with frame size 5166 and works _well_ with frame size > 4032. > > This was changed in > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D283883 > > In the ixgbe_init_locked() initialization of adapter->rx_mbuf_sz was > limited to MJUMPAGESIZE. But I'm agree with Ryan, with this > configuration it works more reliable. > =E2=80=8BNothing prevents modifying the configuration while the card is in netmap mode, and reverting to the previous one in regular mode. netmap allocates its own buffers and if it fails the NIC just reverts back to regular mode. This said, we can make netmap work with multiple buffers also on NICs; it is already supported in VALE. Just makes the user code a bit less convenient. cheers luigi