Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2445658rdb; Wed, 4 Oct 2023 01:01:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0IyDincrQvEC843FUipowVykDDTELUpJTBDWN4OOFknP+PlVjg0p2+YKh7hzZag7hw8SR X-Received: by 2002:a05:6a00:1516:b0:691:da6:47b with SMTP id q22-20020a056a00151600b006910da6047bmr1844705pfu.10.1696406477800; Wed, 04 Oct 2023 01:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696406477; cv=none; d=google.com; s=arc-20160816; b=YPBqEbmNITvdzcslORZkqWTuWWE0EOEus1yBtnpTRuYGrS90CxdSZbuzbIqaKCslfW K2lJSMpKw9lfZN1nM1O5ayv28obke3KMbOFHQfoUBOdhrW9fTmLdlVvO2K1lKoNb75Fa xl0dOY5bCuPB850Z5DOTj4itmW7o0D8OIhzLz70U40EGi1JboQyBMgI9ejY2T/Zi8Xyk IUgj5OLZfocKEAPcowQtdfIyUN6w9A4f49RChRGxsn/zjPOlyTCuDVn3gkzMFvANY5PS t/gMiQ0LCE9MwBao/BIzWSaVhsA12f+XXow7Q8Ra8qULYE5V92lT3BJ+8FJWdJL3zfys ruLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=k4GPswq1nJUxeNhfuZbbaaDCFNiotrTOwD7Itt1+7Js=; fh=SE48OspXN9DN8x+8PAdQSfGvu4RQpelJhbz6+jI9tIc=; b=FNY/r7exd+VQBk6Gb4Jk/BvlKlywSBqvMqzRfCv9rdZg2glgL/qibKK2uSnqwaPe0h LZVQnoxmsjJLavcEWXtBWmtB7TA5LztJ+r0A9wLmiTuK/Kf0Hxgm0E2ZIOksNqmPmf5q DUABeZIWUf9arrayH6qSI8Dnd6+5qdOTlHNxhn5kq9JjCtPbmzKK1fIjhcL3TRC1ri15 WFyJXI8o6DgWRgvPQgwlQa21NO/N03aX0AMUrvU48JYq/8xJMTdVe0tMQ8pQNhcIPLPr E3ThLljxX32XGmd5OCxVQn+5ul56ChId/Mo1/2kr8R4Jflp/6fUKxY2pUwJDHZ9gZTDk tp/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0055379a7131csi3509676pgu.721.2023.10.04.01.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 01:01:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9C332819FC2E; Wed, 4 Oct 2023 01:01:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241656AbjJDIA5 (ORCPT + 99 others); Wed, 4 Oct 2023 04:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241657AbjJDIAv (ORCPT ); Wed, 4 Oct 2023 04:00:51 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54283B7; Wed, 4 Oct 2023 01:00:46 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qnwo9-0008ME-VA; Wed, 04 Oct 2023 10:00:37 +0200 Date: Wed, 4 Oct 2023 10:00:37 +0200 From: Florian Westphal To: Henrik =?iso-8859-15?Q?Lindstr=F6m?= Cc: Florian Westphal , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: macvtap performs IP defragmentation, causing MTU problems for virtual machines Message-ID: <20231004080037.GC15013@breakpoint.cc> References: <20231002092010.GA30843@breakpoint.cc> <2197902.NgBsaNRSFp@pc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2197902.NgBsaNRSFp@pc> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 01:01:15 -0700 (PDT) Henrik Lindstr?m wrote: > Had to change "return 0" to "return vif" but other than that your changes > seem to work, even with macvlan defragmentation removed. Oh, right, that should have been "return vid" indeed. > I tested it by sending 8K fragmented multicast packets, with 5 macvlans on > the receiving side. I consistently received 6 copies of the packet (1 from the > real interface and 1 per macvlan). While doing this i had my VM running with > a macvtap, and it was receiving fragmented packets as expected. > > Here are the changes i was testing with, first time sending a diff over mail > so hope it works :-) Can you submit this formally, with proper changelog and Signed-off-by? See scripts/checkpatch.pl in the kernel tree. It might be a good idea to first mail the patch to yourself and see if you can apply it (sometimes tabs get munged into spaces, long lines get broken, etc). You could also mention in changelog that this is ipv4 only because ipv6 already considers the interface index during reassembly. Thanks!