1 From a087295ba496680b81ecafe72f999d4e9076e737 Mon Sep 17 00:00:00 2001
2 From: Alexandre Derumier <aderumier@odiso.com>
3 Date: Fri, 23 Jun 2023 09:13:39 +0200
4 Subject: [PATCH] addons: ethtool: add rx-vlan-filter
6 some nic like mellanox connectx don't work well with
7 vlan aware bridge && rx-vlan-filter.
8 (They are limited in number of vlans in hardware filtering,
9 and break with big number of vlans like bridge-vids 2-4096)
11 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
13 ifupdown2/addons/ethtool.py | 7 +++++++
14 1 file changed, 7 insertions(+)
16 diff --git a/ifupdown2/addons/ethtool.py b/ifupdown2/addons/ethtool.py
17 index 2134329..8a79472 100644
18 --- a/ifupdown2/addons/ethtool.py
19 +++ b/ifupdown2/addons/ethtool.py
20 @@ -117,6 +117,12 @@ class ethtool(Addon, moduleBase):
21 'validvals': ['on', 'off'],
22 'default': 'varies by interface'
25 + 'help': 'RX Vlan Filter',
26 + 'example': ['rx-vlan-filter off'],
27 + 'validvals': ['on', 'off'],
28 + 'default': 'varies by interface'
31 'help': 'Ring RX Parameter',
32 'example': ['ring-rx 512'],
33 @@ -384,6 +390,7 @@ class ethtool(Addon, moduleBase):
34 self.do_offload_settings(ifaceobj, 'ufo-offload', 'ufo')
35 self.do_offload_settings(ifaceobj, 'tx-offload', 'tx')
36 self.do_offload_settings(ifaceobj, 'rx-offload', 'rx')
37 + self.do_offload_settings(ifaceobj, 'rx-vlan-filter', 'rx-vlan-filter')
39 def _pre_down(self, ifaceobj):
40 pass #self._post_up(ifaceobj,operation="_pre_down")