From owner-freebsd-net@freebsd.org Mon Mar 19 19:49:21 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8651F67959 for ; Mon, 19 Mar 2018 19:49:21 +0000 (UTC) (envelope-from aspam@cox.net) Received: from eastrmfepo202.cox.net (eastrmfepo202.cox.net [68.230.241.217]) by mx1.freebsd.org (Postfix) with ESMTP id 6A0B88189B for ; Mon, 19 Mar 2018 19:49:21 +0000 (UTC) (envelope-from aspam@cox.net) Received: from eastrmimpo110.cox.net ([68.230.241.223]) by eastrmfepo202.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20180319194915.TEIW7322.eastrmfepo202.cox.net@eastrmimpo110.cox.net> for ; Mon, 19 Mar 2018 15:49:15 -0400 Received: from thunder.sweets ([68.100.138.62]) by eastrmimpo110.cox.net with cox id PvpE1x00j1LxgH801vpEna; Mon, 19 Mar 2018 15:49:15 -0400 X-Authority-Analysis: v=2.2 cv=VfuHBBh9 c=1 sm=1 tr=0 a=3mkzfl4ircflX6G+lDqBYw==:117 a=3mkzfl4ircflX6G+lDqBYw==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=v2DPQv5-lfwA:10 a=e9ASbk4n0QUA:10 a=GaCiEt_Ov1hTDkfTx3YA:9 a=QEXdDO2ut3YA:10 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (LOGIN) smtp.auth=jbuehler@cox.net Received: from [10.10.10.15] (thunder.sweets [10.10.10.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thunder.sweets (Postfix) with ESMTP id 43CBD1152A; Mon, 19 Mar 2018 15:49:14 -0400 (EDT) Message-ID: <5AB01439.3090003@cox.net> Date: Mon, 19 Mar 2018 15:49:13 -0400 From: Joe Buehler User-Agent: Thunderbird 1.5.0.12 (X11/20120201) MIME-Version: 1.0 To: Vincenzo Maffione CC: "freebsd-net@freebsd.org" Subject: Re: netmap ixgbevf mtu References: <5AAC49BE.3030508@cox.net> <5AAC4A96.1040107@cox.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 19 Mar 2018 19:49:22 -0000 Vincenzo Maffione wrote: > To receive a frame larger than the RX buffer size you need multiple > netmap slots (as multiple descriptors are > used by the hardware), looking at the NS_MOREFRAG flag. > See the example code in utils/functional.c::rx_one(). This works fine -- thanks. > Also TX may have per-slot limitations (e.g. due to the size of the NIC > TX fifo), but this is usually > 9K, so using a single descriptor per > packet should always > be ok. However, you can also use multiple slots on the TX side (see > utils/functional.c::tx_one()). Trying to split TX frames into multiple buffers does not work, the NIC is sending 2048 byte frames (the buf_size I am using). I will re-check my code. Do I need a particular version of ixgbevf perhaps? Joe Buehler