From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4EB48A00C2; Mon, 8 Aug 2022 17:37:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB8A04067B; Mon, 8 Aug 2022 17:37:13 +0200 (CEST) Received: from mail.tutus.se (mail.tutus.se [193.181.0.5]) by mails.dpdk.org (Postfix) with ESMTP id 0C9414014F for ; Mon, 8 Aug 2022 17:37:11 +0200 (CEST) Received: from mail.tutus.se (localhost.localdomain [127.0.0.1]) by mail.tutus.se (Proxmox) with ESMTP id 9A512143748; Mon, 8 Aug 2022 17:37:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tutus.se; h=cc :cc:content-transfer-encoding:content-type:content-type:date :from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=key1; bh=CxQbm4MKhKV8na9+zhlf UCjLETNybBeA47oKPNiy0jU=; b=Ec+SC6gxps/Yp936RuiYZVAK35TzQ7T2PUn1 2uASZ2dw0qMwpHUSANhOdOlsGY9hD/DGxT8lMq76wwn6Tc2uC17pteL7NeVjVfkw QSSYr6mNy+QSRnk8MBVN7z+T3kA1/pnX0xTORDWXQMBtuf7BgdcVnDWre07Vuo7K xoqtLGiYM17MFv3EKvRs+LZ1gxY1YDRIQYKNXCBtueFUuY5c6jmF2M9ijNe2xuud jHVzO23VIu1vMfrZJlQcqyya/WAuyT+0RQ2TD/Bod0BeNnDQcA2+3uMcerYhDjHu 84CCy8PnHtV2BP2VM4YCXy9Hr1D4gq0Hfc2z57fpqvS+fznS9A== Message-ID: <93cbc18c-fcc4-d34d-4419-5268513f7b87@tutus.se> Date: Mon, 8 Aug 2022 17:38:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v7] net/tap: Allow jumbo frames Content-Language: en-US To: Stephen Hemminger Cc: dev@dpdk.org References: <315474c3-7004-2114-9e24-8344da7aca9e@tutus.se> <20220808080323.53f303fe@hermes.local> From: Francesco Mancino In-Reply-To: <20220808080323.53f303fe@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Thank you for the feedback. I am sorry for the email spam, it was a learning process. I am not sure what results we would get by querying the MTU before configuring it, since we can (and do) set the MTU using SIOCSIFMTU. On 2022-08-08 17:03, Stephen Hemminger wrote: > On Mon, 8 Aug 2022 16:49:44 +0200 > Francesco Mancino wrote: > >> eth_dev_validate_mtu, introduced in 990912e676e, validates configured >> MTU plus overhead against max_rx_pktlen. >> Since TAP is a virtual device, it should support as big MTU as possible. >> >> Signed-off-by: Francesco Mancino > dev_info->min_rx_bufsize = 0; > > > Thanks for your patience. > > Since tap is built on top of an existing kernel network device a more > complete solution would be to query the kernel device to find out what > its MTU is. > > Acked-by: Stephen Hemminger >