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 68A6E8B749 for ; Thu, 25 Aug 2022 11:28:02 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5B6F6239F5 for ; Thu, 25 Aug 2022 11:28:02 +0200 (CEST) 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 for ; Thu, 25 Aug 2022 11:28:01 +0200 (CEST) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id ABE1F80C6; Thu, 25 Aug 2022 11:27:54 +0200 (CEST) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id 911DC1D3301; Thu, 25 Aug 2022 11:27:54 +0200 (CEST) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Thu, 25 Aug 2022 11:27:52 +0200 Message-Id: <20220825092753.4014178-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.092 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% HEADER_FROM_DIFFERENT_DOMAINS 0.25 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 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, network.pm] Subject: [pve-devel] [PATCH V3 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: Thu, 25 Aug 2022 09:28:02 -0000 changelog v2: - rebase on last git changelog v3: - rebase on last git 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/ (user confirmed that this patch fix the problem) 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 | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) -- 2.30.2