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 A2F50A00C2; Mon, 8 Aug 2022 17:03:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A9D54067B; Mon, 8 Aug 2022 17:03:27 +0200 (CEST) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id B0D284014F for ; Mon, 8 Aug 2022 17:03:25 +0200 (CEST) Received: by mail-pg1-f178.google.com with SMTP id bh13so8814651pgb.4 for ; Mon, 08 Aug 2022 08:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9XUa7VILUiaqAJQLhYx0fV48gYv0ZTj+QfqZlQ9GZVg=; b=c2N9CqUPUfaH8YEKsOErKoLgn5oHG8Y/eiWki6IZ7Za9P1DK/ys7+9UgRWnTDoN8YL oNcGpfRxKGIkhEDNF4kJWIXxYnfbXeSLN0lBWFyRbsD06q9nW/wkxeSAuvR6f7pvCo01 6g9OtjBxRYhTopvelG+TEXXx3lk0q6QYKLl3DPluSVH4fzuh+XNJnC/zTPLHFC3/sUqv VMacQ2/VFdhkPZ+yMtY7+6tkSrOM2+TBxo1jCmfXzZTcJbhr02Cri3P58TTl1ZwLJJC4 TpWe/odhwI1gbuLTPfurTcZdJBKkV274OvtrSUh9fWdUfUedKcmScxg+b2sMOxKjgXRA bITQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9XUa7VILUiaqAJQLhYx0fV48gYv0ZTj+QfqZlQ9GZVg=; b=07p5cmubr2Vj/GXMmXgPLvqdnD9JKEoK4yeZGL/jvi+oDwQZT8M3xjeB4BNqxHnr5n oPS9Ihsz2y8cI+4HW77bcM0lfJ/Vasf7bLLy25YgxscGyePtRKH4HKeUNUNfZLwItySp +7+2DT1GSPp0OtQn36HUmf/IHSnBMMtmxhNLBN9g8ZSSeYdYRexjUw47VkATEVZa+Q5I D/mEMRPFycYuLAZ6rMeo55+l7rWyhBRFl98NObgWzOR3jD61Mu6gv/zwrxbEGA2CUEMS raB7vFx9dpVOtH6ZWaaexJV60km4DxN4xJRkiP5Y48MUaUZ7aqXAdMn/j0JJqLzD40sf KPmA== X-Gm-Message-State: ACgBeo2TOqTNJgrPR9TqFEqnN3ipWEdSX4Y64kOx5KA442EAtSm1sd6M l+YtGFcZ6bmlTRoBuJuE307Cix4HuZA6aA== X-Google-Smtp-Source: AA6agR4c4fDVj7zCMB+ud6ud7q8Rc6yLkAemED+1mP1UVi9d1b3jyiEfgmaF0yHDnv1iWVxC8OJUQg== X-Received: by 2002:a63:2cc2:0:b0:41c:681d:60d2 with SMTP id s185-20020a632cc2000000b0041c681d60d2mr15234488pgs.502.1659971004796; Mon, 08 Aug 2022 08:03:24 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a13-20020a1709027e4d00b0016b8746132esm5047121pln.105.2022.08.08.08.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 08:03:24 -0700 (PDT) Date: Mon, 8 Aug 2022 08:03:23 -0700 From: Stephen Hemminger To: Francesco Mancino Cc: dev@dpdk.org Subject: Re: [PATCH v7] net/tap: Allow jumbo frames Message-ID: <20220808080323.53f303fe@hermes.local> In-Reply-To: References: <315474c3-7004-2114-9e24-8344da7aca9e@tutus.se> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 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