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 2D9176C1E5 for ; Sat, 27 Mar 2021 19:10:18 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1FAAEA469 for ; Sat, 27 Mar 2021 19:10:18 +0100 (CET) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (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 1F9FEA45F for ; Sat, 27 Mar 2021 19:10:17 +0100 (CET) Received: by picard.linux.it (Postfix, from userid 10) id DA1EA3C2790; Sat, 27 Mar 2021 19:10:03 +0100 (CET) Received: from hermione.lilliput.linux.it ([192.168.1.24] helo=hermione.sv.lnf.it) by eraldo.lilliput.linux.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1lQDMo-0000CK-Da for pve-user@pve.proxmox.com; Sat, 27 Mar 2021 19:08:58 +0100 Received: by hermione.sv.lnf.it (Postfix, from userid 1000) id 4A41AA00515; Sat, 27 Mar 2021 19:08:58 +0100 (CET) Date: Sat, 27 Mar 2021 19:08:58 +0100 From: Marco Gaiarin To: pve-user@pve.proxmox.com Message-ID: <20210327180858.GB42768@lilliput.linux.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 'Organization: Associazione La Nostra Famiglia - Polo FVG' 'From: Marco Gaiarin ' X-SPAM-LEVEL: Spam detection results: 0 JMQ_SPF_NEUTRAL 0.5 SPF set to ?all KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record T_SPF_PERMERROR 0.01 SPF: test of record failed (permerror) Subject: [PVE-User] Bond and hardware parameters... X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2021 18:10:18 -0000 I don't know if this can be considered a 'bug', or a 'feature request', for now i make a note and hope in some feedback. I need in a PVE server to have a bond interface but i need also to set some hardware parameters, following the 'bufferbloat' principle, eg no performance, full control. This bond have to manage some (slow) WAN link, that have to be policed. I've tried to setup some parameters, eg installed 'ethtool' and added to slave bond interfaces: iface enp48s0 inet manual ethernet-autoneg on link-speed 100 link-duplex full hardware-dma-ring-tx 64 offload-tso off offload-gso off offload-gro off iface enp48s1 inet manual ethernet-autoneg on link-speed 100 link-duplex full hardware-dma-ring-tx 64 offload-tso off offload-gso off offload-gro off auto bond0 iface bond0 inet manual slaves enp48s0 enp48s1 bond_miimon 100 bond_mode 802.3ad bond_xmit_hash_policy layer2+3 bond-slaves enp48s0 enp48s1 bond-downdelay 200 bond-updelay 200 but found that parameters was not set. But if i fire up the interface and then the bond by hand using ifenslave, the hardware parametrs seems to be kept. After fiddling a bit, i've found in /usr/share/doc/ifenslave/README.Debian.gz: Using ifup on a master interface will call ifup for all slaves that are flagged with allow-bondX. (bondX being replaced by the master interface name). This will allow for extra setup for special slave interfaces. so seems that the correct syntiax is: iface enp48s0 inet manual ethernet-autoneg on link-speed 100 link-duplex full hardware-dma-ring-tx 64 offload-tso off offload-gso off offload-gro off allow-bond0 iface enp48s1 inet manual ethernet-autoneg on link-speed 100 link-duplex full hardware-dma-ring-tx 64 offload-tso off offload-gso off offload-gro off allow-bond0 auto bond0 iface bond0 inet manual slaves enp48s0 enp48s1 bond_miimon 100 bond_mode 802.3ad bond_xmit_hash_policy layer2+3 bond-slaves enp48s0 enp48s1 bond-downdelay 200 bond-updelay 200 I've tried in this way, and effectively hardware parameters are set correctly, as expected. Indeed, probably this will hit also MTU settings, but probably the MTU setting in an LACP bond 'propagate' automaticaly to slaves, so i've never noted that. Say me if it is better to fire up a bug, to have PVE web interface to automatically accomodate that. Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)