Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4704139rwr; Mon, 8 May 2023 11:20:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Nj1AjZxvww3M1ngevAbDA7rhklzeR3ifZ1SrCRvxONzZMYvM23BFt0W5W1qCoTyThEqx2 X-Received: by 2002:a05:6a00:1396:b0:646:7bc9:c480 with SMTP id t22-20020a056a00139600b006467bc9c480mr2615474pfg.10.1683570053501; Mon, 08 May 2023 11:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683570053; cv=none; d=google.com; s=arc-20160816; b=bnbtq4tUw6YXv1AO48XD70/l3jqn0JTttj5e2c5VrJQv1/Etp0zPXH2Sf8l8ylJG9e PG5P5ba74JCtOTA24YKHnVaWu+MT40GHqtKnNAQe9SWL9G5X06hicpHVLDunFC5ENA1O n0un8Xl0r2t0NNhUd9gUac1WxKIcLFIRvyGrgXwKX6GHKLs+SqQrVMlaz+w+ILpCyeOd TYfRZwakRHFA7T5QArqxVHyRVM66WoIVs2VlQx4F5kv+cXLdyMGBX2gylXVcsyBnKusD xr9PSxAm6z7SPl1GOTQz6rwvq4uMblaAOnpklOzYl8zUj+vryBvuTnVVN+4Kr0+FnEd3 MjZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xgNVzoHB5qPigrpPQ7go/TrIsJOwIwgQ8Ks/ppylKsI=; b=XgGtH8mkRW8L0nJFJdtYauwKWN/OMeUcakKwOuZ+Q6lkUW4MS5iN7A/ePkN83f9+Cy dHvZL2MTMMzq255bzsRhUafHFBUSd3DxChviJPYGsfHFjlbo+EmF/bI/z4c0PYPKiHCe hx4hIrmAkSb28BnJ0G999TxLR96AYDMpd9YkOZ/nD0zbfqJYegNMHI/N6CP4wDFWlRMV uhzdc9p3uosyqIuf9rHKqbDishEctywluqtifRCJjkA4TqiFeK212VDiaqwnDmi6FhdV uY07qFGKzmdwr+UmNz5m0h1VYWSA/OR4r8rkBDO+dxXQ4CLZd1RwY3DH0skGKOUckUCp I/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ATWee/Pp"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h123-20020a636c81000000b0051f0d0d6343si8569460pgc.688.2023.05.08.11.20.40; Mon, 08 May 2023 11:20:53 -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=@redhat.com header.s=mimecast20190719 header.b="ATWee/Pp"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbjEHSLI (ORCPT + 99 others); Mon, 8 May 2023 14:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233109AbjEHSLG (ORCPT ); Mon, 8 May 2023 14:11:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8124DE78 for ; Mon, 8 May 2023 11:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683569419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xgNVzoHB5qPigrpPQ7go/TrIsJOwIwgQ8Ks/ppylKsI=; b=ATWee/PpSZ8birYYfb/9e3n/KovM3/6SaWnu+rFT/hmh53V1XFJamhODuM9F+lT34lS5sm kd5mMOS1zrqjSpVRcfxnicYLV8eNcrSHf6SL7QS+yJqO5XVDTif2+VzPy39yjzCoGWYo8a sCh9qI7tmz4qJHyb/x9AL80SqaTq1Yw= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-369-xORKEIf3PKeiMMMKclV-Qw-1; Mon, 08 May 2023 14:10:17 -0400 X-MC-Unique: xORKEIf3PKeiMMMKclV-Qw-1 Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-7578369dff3so450771985a.0 for ; Mon, 08 May 2023 11:10:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683569417; x=1686161417; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xgNVzoHB5qPigrpPQ7go/TrIsJOwIwgQ8Ks/ppylKsI=; b=RZgOxjmahWo3fzTiyT1alUlTBYadRWZFwoFyP8nqpQK+wqV61084c04YHlTEFSUmZW jL7cG2gdTxAhaIoE2ECHakuBBY69qkwi+hKOTliEBk8rEkKNY+qayJqVSPVAfEsaINWU oQ3CEY+c7NNBBmROYRI8zOFhnDdCO8d+R89gjabpcH2Bb1X0xpcIYCruXBc9QWmCUoub uFrAB64EEPcQAG6CODEidcJVpRzYbhoOrn1jVwPHpyZakWGVNfcpSUXa2Vi5YEHDm+Ly /aY/ltaafcKCRxVqXX1CcMZSmXO2AtVngDunuov26kpZJR8JZ3NRSgqAzrzn3NUe/4x+ pcbw== X-Gm-Message-State: AC+VfDz60X6GWQM/Yc/VPqBNKyE2LU220d2TaF+PW9S88CoLGwEYBW1M gPn+5YPFWG9HKJbZCuDpEUC20sEIZLjm95M1EplTb6sndHX3TCtEJ0RQTAerGCUnkI3S75K0nyo EGgPCs6PyQCMwsEeqS8OrKmFF X-Received: by 2002:ad4:5f0c:0:b0:5ef:5503:d41c with SMTP id fo12-20020ad45f0c000000b005ef5503d41cmr25153929qvb.15.1683569417213; Mon, 08 May 2023 11:10:17 -0700 (PDT) X-Received: by 2002:ad4:5f0c:0:b0:5ef:5503:d41c with SMTP id fo12-20020ad45f0c000000b005ef5503d41cmr25153902qvb.15.1683569416907; Mon, 08 May 2023 11:10:16 -0700 (PDT) Received: from redhat.com ([185.187.243.116]) by smtp.gmail.com with ESMTPSA id w10-20020a0ce10a000000b006039f5a247esm151943qvk.78.2023.05.08.11.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 11:10:15 -0700 (PDT) Date: Mon, 8 May 2023 14:10:07 -0400 From: "Michael S. Tsirkin" To: Stephen Hemminger 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: <20230508140640-mutt-send-email-mst@kernel.org> References: <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> <20230508092548.5fc8f078@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230508092548.5fc8f078@hermes.local> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, May 08, 2023 at 09:25:48AM -0700, Stephen Hemminger wrote: > 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. Exactly. That's why we basically use the MTU advice supplied by device by default - it's designed for use-cases of software devices where the device might have more information about the MTU than the guest. If hardware devices want e.g. a way to communicate support for jumbo frames without communicating any information about the LAN, a new feature will be needed. -- MST