From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 218F6613F1 for ; Fri, 18 Feb 2022 17:25:13 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1E8FA2BDD2 for ; Fri, 18 Feb 2022 17:25:13 +0100 (CET) Received: from bastionodiso.odiso.net (bastionodiso.odiso.net [185.151.191.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id C389D2BDC4 for ; Fri, 18 Feb 2022 17:25:11 +0100 (CET) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id 16D143C980; Fri, 18 Feb 2022 17:25:03 +0100 (CET) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id EA6B213DFBB; Fri, 18 Feb 2022 17:25:02 +0100 (CET) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Fri, 18 Feb 2022 17:25:00 +0100 Message-Id: <20220218162501.3423501-1-aderumier@odiso.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.094 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods NO_DNS_FOR_FROM 0.001 Envelope sender has no MX or A DNS records SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH pve-common 0/1] network: tap_plug: fix mtu bugs X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2022 16:25:13 -0000 a forum user have reported strange bug with ovs + mtu9000 when switching between 2 ovs bridge with different mtu. (1500 vs 9000) https://forum.proxmox.com/threads/ovs-problem-with-mtu-9000-on-vms-assigned-to-vmbr0.105172/ I have found 2 bugs: 1) ovsint port mtu need to be set with ""ovs-vsctl set mtu-request" (ip link set mtu 9000 don't seem to do nothing on ovs-int port, maybe this have change with last ovs version.) fresh start of a vm 100 + firewall on ovs with mtu 9000: 153: tap100i0: mtu 9000 qdisc pfifo_fast master fwbr100i0 state UNKNOWN group default qlen 1000 link/ether 62:42:32:cc:a2:24 brd ff:ff:ff:ff:ff:ff 154: fwbr100i0: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 46:f6:b7:95:23:86 brd ff:ff:ff:ff:ff:ff 155: fwln100o0: mtu 1500 qdisc noqueue master fwbr100i0 state UNKNOWN group default qlen 1000 2) when switching between 2 bridges or ovs with differents mtu, mtu are not updated on existing interfaces (veth,tap, fwbr, fwnl) vm start : vmbr0 mtu=1500 + firewall ----------------------------- 200: tap100i0: mtu 1500 qdisc pfifo_fast master fwbr100i0 state UNKNOWN group default qlen 1000 link/ether 62:42:32:cc:a2:24 brd ff:ff:ff:ff:ff:ff 206: fwbr100i0: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 46:f6:b7:95:23:86 brd ff:ff:ff:ff:ff:ff 207: fwpr100p0@fwln100i0: mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000 link/ether 0a:2e:f5:f4:22:e3 brd ff:ff:ff:ff:ff:ff 208: fwln100i0@fwpr100p0: mtu 1500 qdisc noqueue master fwbr100i0 state UP group default qlen 1000 link/ether 96:0e:94:11:c1:45 brd ff:ff:ff:ff:ff:ff switch to vmbr1 mtu=9000 + firewall -------------------------------------- 200: tap100i0: mtu 1500 qdisc pfifo_fast master fwbr100i0 state UNKNOWN group default qlen 1000 link/ether 62:42:32:cc:a2:24 brd ff:ff:ff:ff:ff:ff 209: fwbr100i0: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 46:f6:b7:95:23:86 brd ff:ff:ff:ff:ff:ff 210: fwpr100p0@fwln100i0: mtu 9000 qdisc noqueue master vmbr3 state UP group default qlen 1000 link/ether 0a:2e:f5:f4:22:e3 brd ff:ff:ff:ff:ff:ff 211: fwln100i0@fwpr100p0: mtu 9000 qdisc noqueue master fwbr100i0 state UP group default qlen 1000 link/ether 96:0e:94:11:c1:45 brd ff:ff:ff:ff:ff:ff Alexandre Derumier (1): network: tap_plug: fix mtu src/PVE/Network.pm | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) -- 2.30.2