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 6B2F08F38 for ; Fri, 23 Jun 2023 11:03:39 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4E356311C3 for ; Fri, 23 Jun 2023 11:03:09 +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 ; Fri, 23 Jun 2023 11:03:08 +0200 (CEST) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id 269F27F8C; Fri, 23 Jun 2023 11:03:08 +0200 (CEST) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id 1F71B33522E; Fri, 23 Jun 2023 11:03:08 +0200 (CEST) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Fri, 23 Jun 2023 11:02:58 +0200 Message-Id: <20230623090258.284882-4-aderumier@odiso.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230623090258.284882-1-aderumier@odiso.com> References: <20230623090258.284882-1-aderumier@odiso.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.035 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy 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 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. [ethtool.py] Subject: [pve-devel] [PATCH ifupdown2 2/2] patch: ethtool: add rx-vlan-filter support 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, 23 Jun 2023 09:03:39 -0000 to fix nic like mellanox && vlan-aware-bridge upstream pull request: https://github.com/CumulusNetworks/ifupdown2/pull/266 Signed-off-by: Alexandre Derumier --- debian/patches/series | 1 + ...01-addons-ethtool-add-rx-vlan-filter.patch | 43 +++++++++++++++++++ ifupdown2 | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 debian/patches/upstream/0001-addons-ethtool-add-rx-vlan-filter.patch diff --git a/debian/patches/series b/debian/patches/series index 628fed1..9f2936f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -8,3 +8,4 @@ pve/0007-allow-vlan-tag-inside-vxlan-tunnel.patch pve/0008-lacp-bond-remove-bond-min-links-0-warning.patch pve/0009-gvgeb-fix-python-interpreter-shebang.patch upstream/0001-add-ipv6-slaac-support-inet6-auto-accept_ra.patch +upstream/0001-addons-ethtool-add-rx-vlan-filter.patch diff --git a/debian/patches/upstream/0001-addons-ethtool-add-rx-vlan-filter.patch b/debian/patches/upstream/0001-addons-ethtool-add-rx-vlan-filter.patch new file mode 100644 index 0000000..aad6c24 --- /dev/null +++ b/debian/patches/upstream/0001-addons-ethtool-add-rx-vlan-filter.patch @@ -0,0 +1,43 @@ +From a087295ba496680b81ecafe72f999d4e9076e737 Mon Sep 17 00:00:00 2001 +From: Alexandre Derumier +Date: Fri, 23 Jun 2023 09:13:39 +0200 +Subject: [PATCH] addons: ethtool: add rx-vlan-filter + +some nic like mellanox connectx don't work well with +vlan aware bridge && rx-vlan-filter. +(They are limited in number of vlans in hardware filtering, +and break with big number of vlans like bridge-vids 2-4096) + +Signed-off-by: Alexandre Derumier +--- + ifupdown2/addons/ethtool.py | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/ifupdown2/addons/ethtool.py b/ifupdown2/addons/ethtool.py +index 2134329..8a79472 100644 +--- a/ifupdown2/addons/ethtool.py ++++ b/ifupdown2/addons/ethtool.py +@@ -117,6 +117,12 @@ class ethtool(Addon, moduleBase): + 'validvals': ['on', 'off'], + 'default': 'varies by interface' + }, ++ 'rx-vlan-filter': { ++ 'help': 'RX Vlan Filter', ++ 'example': ['rx-vlan-filter off'], ++ 'validvals': ['on', 'off'], ++ 'default': 'varies by interface' ++ }, + 'ring-rx': { + 'help': 'Ring RX Parameter', + 'example': ['ring-rx 512'], +@@ -384,6 +390,7 @@ class ethtool(Addon, moduleBase): + self.do_offload_settings(ifaceobj, 'ufo-offload', 'ufo') + self.do_offload_settings(ifaceobj, 'tx-offload', 'tx') + self.do_offload_settings(ifaceobj, 'rx-offload', 'rx') ++ self.do_offload_settings(ifaceobj, 'rx-vlan-filter', 'rx-vlan-filter') + + def _pre_down(self, ifaceobj): + pass #self._post_up(ifaceobj,operation="_pre_down") +-- +2.39.2 + diff --git a/ifupdown2 b/ifupdown2 index a052254..a087295 160000 --- a/ifupdown2 +++ b/ifupdown2 @@ -1 +1 @@ -Subproject commit a0522546b848435115a20eb647f87ade01761a33 +Subproject commit a087295ba496680b81ecafe72f999d4e9076e737 -- 2.39.2