Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4585332rwr; Mon, 8 May 2023 09:38:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ynoacBRiSBFdDK5KnbN5SdurGPTcbKXXDTAr4Vffem9+S9AhlKOcKXARLG95oBmxZj8l2 X-Received: by 2002:a17:90a:c70e:b0:24e:a0b:426 with SMTP id o14-20020a17090ac70e00b0024e0a0b0426mr12073861pjt.24.1683563881996; Mon, 08 May 2023 09:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683563881; cv=none; d=google.com; s=arc-20160816; b=WV0mLyjWXK133L83tBWslsUAKCc6FNW9Ol7IU4jnVC6UA6UTARzUjGj++VzggLTRRR Qj//dyTePN2Uz/CyNlN8fRtSfwodOuEK9glzfDPUUoQaThymj6ji3VGQZZzyi1gvwpC/ 6dtFhxwPvrfdi5Nt9PnXcsZd0g4VjVIPyroMFZq2mCGvAlxeH76iB5agzFaqe/KXXayo 0mTdw10FN3qbYfr34vlvsi7VHT/ZwiPVrtyuhZlwvNUfjLDXnifcWLbdVmPMRRX8RVnl DTJ0ILadcmpZj48ke/ElGX2XnBHdE9N0ssoWSQ8SXsStRrJeOfFBH21ut8uZ3dq6dcCS Mb/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=UMRspvRrnCiX2PGc3SiKh0fa94AnkU5LDoj0pGSvFHU=; b=vBoF6Cs0BxKFXaz6WtvQif2WS+bYSMTzH0p/gJXIFzU2ifq0CvWKYFHj18MPqp0fnF qRjHCmbxjuPOvG2ayz8q0AstyHbTZN2OvX7e0eLtcneMiIR+OZN9ymVInGffFSoGWiti gdnFh3TuYChs+YPPt9teuShvZ+QqZZRhaKsQMcdfEl70fwO9s2CCbpoM5reYreYLwUZW Sh+yZCX0SOopcEMYg++K2z8igwEuOy3/KNA7JvMjZrcg0MxL08EhUKrQTxmEYt1rXVJ7 ethAPRPgzGwuxfvZd0E9IYlW4kw6OPB+bf+wAdp3B74pXoZayNrlYoiQQJgGCaOBy4lI j5Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20221208.gappssmtp.com header.s=20221208 header.b=0SDB6x2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob17-20020a17090b391100b0025066f45e11si4665645pjb.23.2023.05.08.09.37.37; Mon, 08 May 2023 09:38:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20221208.gappssmtp.com header.s=20221208 header.b=0SDB6x2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234049AbjEHQZy (ORCPT + 99 others); Mon, 8 May 2023 12:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233823AbjEHQZx (ORCPT ); Mon, 8 May 2023 12:25:53 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360592738 for ; Mon, 8 May 2023 09:25:51 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-643912bca6fso3713879b3a.0 for ; Mon, 08 May 2023 09:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683563150; x=1686155150; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=UMRspvRrnCiX2PGc3SiKh0fa94AnkU5LDoj0pGSvFHU=; b=0SDB6x2PHopDhbk1y+a0LH8gjtwXcG7OYClmL4E4hHEip2ovsG5tkhchFHrxTrrA9T UM7+QFe9A5ex3NK/62W8E0lJU5kX2Sve1UU5fuA2WwxrICcyYAnHmmD1hFERVABTGMjH dy4E1aj8COJMv+/RpDGzew2Aajd9ExACP2f9a1zsgM8H0XRRtRKp5GG7J4yqDiMqxldA BRtd54MZvy2wNOmWt4dXYX3k7OGf6v/O1W/IffhIu/N76qGRWhWcFsaxP3aumeb0PlNp Nwcqc8AsiKGSEWSGbxEF4mh/cvXYECcde7K5BUPQluuiFlDhwskEtpHL3Z/Sn609p1NU YWhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683563150; x=1686155150; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UMRspvRrnCiX2PGc3SiKh0fa94AnkU5LDoj0pGSvFHU=; b=iDDorJwkJVNbrhZK6wODG2UvEVgVCb01eabU1vQIRorhw21QBKu8sFDtgEY56vTg5e CsG37DDgoLWy4qwhHTEeQjcc8kLai8gQd7p86ZsS0/lIkFzaVYPuhyCB8Md9FpF48lfq yLPpc/KbRY49z6GESus4TdpFqr/zVLoYxitWHcZHyS2X6bcTaGPI5sAvIQRQmzSGHUj/ s0E5IK22xjR54oMs2IdgzMyizTExQBlE6wCGBavmiOisnEai4H5Q5FeB6liqA6N7btb6 DuMpIg6uEcWeYDD5PB68d1JJb3yB1VuzDmJkSDHO8Md/DSwr92rw+KUiSr63wh/KyJzd J6mg== X-Gm-Message-State: AC+VfDw5jVZ8O+vBL9hCgGPcSFNwjOF9TRiRycYxyDSRl7mWewQIrqGW 9l25xup3l83wPa4jfC4J7k+myg== X-Received: by 2002:a05:6a00:2e1b:b0:63d:6744:8caf with SMTP id fc27-20020a056a002e1b00b0063d67448cafmr13482081pfb.26.1683563150656; Mon, 08 May 2023 09:25:50 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id s19-20020aa78d53000000b0063b86aff031sm164331pfe.108.2023.05.08.09.25.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 09:25:50 -0700 (PDT) Date: Mon, 8 May 2023 09:25:48 -0700 From: Stephen Hemminger To: "Michael S. Tsirkin" Cc: Xuan Zhuo , huangml@yusur.tech, zy@yusur.tech, Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:VIRTIO CORE AND NET DRIVERS" , "open list:NETWORKING DRIVERS" , open list , Hao Chen , hengqi@linux.alibaba.com Subject: Re: [PATCH] virtio_net: set default mtu to 1500 when 'Device maximum MTU' bigger than 1500 Message-ID: <20230508092548.5fc8f078@hermes.local> In-Reply-To: <20230508062928-mutt-send-email-mst@kernel.org> References: <20230506021529.396812-1-chenh@yusur.tech> <1683341417.0965195-4-xuanzhuo@linux.alibaba.com> <07b6b325-9a15-222f-e618-d149b57cbac2@yusur.tech> <20230507045627-mutt-send-email-mst@kernel.org> <1683511319.099806-2-xuanzhuo@linux.alibaba.com> <20230508020953-mutt-send-email-mst@kernel.org> <1683526688.7492425-1-xuanzhuo@linux.alibaba.com> <20230508024147-mutt-send-email-mst@kernel.org> <1683531716.238961-1-xuanzhuo@linux.alibaba.com> <20230508062928-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 8 May 2023 06:30:07 -0400 "Michael S. Tsirkin" wrote: > > > > I don't know, in any scenario, when the hardware supports a large mtu, but we do > > > > not want the user to use it by default. > > > > > > When other devices on the same LAN have mtu set to 1500 and > > > won't accept bigger packets. > > > > So, that depends on pmtu/tcp-probe-mtu. > > > > If the os without pmtu/tcp-probe-mtu has a bigger mtu, then it's big packet > > will lost. > > > > Thanks. > > > > pmtu is designed for routing. LAN is supposed to be configured with > a consistent MTU. Virtio is often used with bridging or macvlan which can't support PMTU. PMTU only works when forwarding at layer 3 (ie routing) where there is a IP address to send the ICMP response. If doing L2 forwarding, the only thin the bridge can do is drop the packet. TCP cab recover but detecting an MTU blackhole requires retransmissions.