From owner-freebsd-net@freebsd.org Wed Jun 8 11:36:18 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 BB4AAB6F991 for ; Wed, 8 Jun 2016 11:36:18 +0000 (UTC) (envelope-from tom.barbette@ulg.ac.be) Received: from serv108.segi.ulg.ac.be (serv108.segi.ulg.ac.be [139.165.32.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 74A8D19C4 for ; Wed, 8 Jun 2016 11:36:18 +0000 (UTC) (envelope-from tom.barbette@ulg.ac.be) Received: from mbx12-zne.ulg.ac.be (serv470.segi.ulg.ac.be [139.165.32.199]) by serv108.segi.ulg.ac.be (Postfix) with ESMTP id 51E82200E7CC; Wed, 8 Jun 2016 13:28:29 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mbx12-zne.ulg.ac.be (Postfix) with ESMTP id 4547A129E986; Wed, 8 Jun 2016 13:28:29 +0200 (CEST) Received: from mbx12-zne.ulg.ac.be ([127.0.0.1]) by localhost (mbx12-zne.ulg.ac.be [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SoX_LZALAPFw; Wed, 8 Jun 2016 13:28:29 +0200 (CEST) Received: from mbx12-zne.ulg.ac.be (mbx12-zne.ulg.ac.be [139.165.32.199]) by mbx12-zne.ulg.ac.be (Postfix) with ESMTP id 25B5A129E984; Wed, 8 Jun 2016 13:28:29 +0200 (CEST) Date: Wed, 8 Jun 2016 13:28:28 +0200 (CEST) From: tom.barbette@ulg.ac.be To: Luigi Rizzo Cc: "Andrey V. Elsukov" , Andrew Vylegzhanin , freebsd-net@freebsd.org, Ryan Stone Message-ID: <1502708678.10983095.1465385308094.JavaMail.zimbra@ulg.ac.be> In-Reply-To: References: <5756C17D.1090409@yandex.ru> Subject: Re: Is netmap jumbo frames broken in STABLE? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [139.165.223.24] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - GC51 (Linux)/8.0.9_GA_6191) Thread-Topic: Is netmap jumbo frames broken in STABLE? Thread-Index: mYO94Fsj3opgFDUS0sB36D60uFgEEA== 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: Wed, 08 Jun 2016 11:36:18 -0000 Support for fragmented packets with ixgbe was recently added on the linux version of Netmap : https://github.com/luigirizzo/netmap/commit/fc1e77560a8a8ea93cc3594de5fae94334debcd3 I think the change for freebsd would be quite the same looking at https://github.com/freebsd/freebsd/blob/master/sys/dev/netmap/ixgbe_netmap.h#L396 After that, your userspace application simply have to check for the NS_MOREFRAG flag in the receive ring, and if it's set he knows the end of the packet will follow in the next buf. Tom