[pve-devel] [PATCH V2 ifupdown2 05/10] add extra patch: 0002-nllistener-increase-buffer.patch

Alexandre Derumier aderumier at odiso.com
Tue Jun 2 10:31:18 CEST 2020


https://github.com/CumulusNetworks/ifupdown2/commit/523b347ad49234efb7787f6f084070034de7e977
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 .../0002-nllistener-increase-buffer.patch     | 25 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 debian/patches/extra/0002-nllistener-increase-buffer.patch

diff --git a/debian/patches/extra/0002-nllistener-increase-buffer.patch b/debian/patches/extra/0002-nllistener-increase-buffer.patch
new file mode 100644
index 0000000..72a4f06
--- /dev/null
+++ b/debian/patches/extra/0002-nllistener-increase-buffer.patch
@@ -0,0 +1,25 @@
+From 523b347ad49234efb7787f6f084070034de7e977 Mon Sep 17 00:00:00 2001
+From: Alexandre Derumier <aderumier at odiso.com>
+Date: Wed, 27 May 2020 15:49:49 +0200
+Subject: [PATCH] nllistener: increase netlink buffer to 64k
+
+Currently 4k buffer is too small to handle some netlink messages
+
+(Like bridge vlans for example, with 32k messages detected).
+---
+ ifupdown2/nlmanager/nllistener.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ifupdown2/nlmanager/nllistener.py b/ifupdown2/nlmanager/nllistener.py
+index b40b058..e319dc4 100644
+--- a/ifupdown2/nlmanager/nllistener.py
++++ b/ifupdown2/nlmanager/nllistener.py
+@@ -44,7 +44,7 @@ class NetlinkListener(Thread):
+     # As defined in asm/socket.h
+     _SO_ATTACH_FILTER = 26
+ 
+-    RECV_BUFFER = 4096  # 1024 * 1024
++    RECV_BUFFER = 65536  # 1024 * 1024
+ 
+     def __init__(self, manager, groups, pid_offset=1, error_notification=False, rcvbuf_sz=10000000, bpf_filter=None):
+         """
diff --git a/debian/patches/series b/debian/patches/series
index 8363c15..e57723c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
 extra/0001-ovs-ovs-ports-condone-regex.patch
+extra/0002-nllistener-increase-buffer.patch
 pve/0001-don-t-remove-tap-veth-fwpr-interfaces-from-bridge-on.patch
 pve/0002-add-dummy-mtu-bridgevlanport-modules.patch
 pve/0003-allow-vlan-subinterface-in-a-vlan-aware-bridge.patch
-- 
2.20.1




More information about the pve-devel mailing list