From a5dccfd869afa2026ff7f9c4e431ff2c8e5d53c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Thu, 28 May 2020 11:16:06 +0200 Subject: [PATCH] cobalt_compat: Fix kernel version for qdisc_tree_reduce_backlog in 4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems there was an off-by-one error in which version of the 4.1 series backported the qdisc_tree_reduce_backlog helper. Fixes #132. Signed-off-by: Toke Høiland-Jørgensen --- cobalt_compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cobalt_compat.h b/cobalt_compat.h index 49b7ebf..1ee98e4 100644 --- a/cobalt_compat.h +++ b/cobalt_compat.h @@ -134,7 +134,7 @@ not in 3.17 3.18.37 not in 3.19 not in 4.0 -4.1.27 onward +4.1.28 onward not in 4.2 not in 4.3 4.4.11 onward @@ -142,7 +142,7 @@ not in 4.3 */ #if ((KERNEL_VERSION(3, 0, 0) <= LINUX_VERSION_CODE) && (KERNEL_VERSION(3, 16, 37) > LINUX_VERSION_CODE)) || \ ((KERNEL_VERSION(3, 18, 0) <= LINUX_VERSION_CODE) && (KERNEL_VERSION(3, 18, 37) > LINUX_VERSION_CODE)) || \ - ((KERNEL_VERSION(4, 1, 0) <= LINUX_VERSION_CODE) && (KERNEL_VERSION(4, 1, 27) > LINUX_VERSION_CODE)) || \ + ((KERNEL_VERSION(4, 1, 0) <= LINUX_VERSION_CODE) && (KERNEL_VERSION(4, 1, 28) > LINUX_VERSION_CODE)) || \ ((KERNEL_VERSION(4, 4, 0) <= LINUX_VERSION_CODE) && (KERNEL_VERSION(4, 4, 11) > LINUX_VERSION_CODE)) || \ ((KERNEL_VERSION(4, 5, 0) <= LINUX_VERSION_CODE) && (KERNEL_VERSION(4, 5, 5) > LINUX_VERSION_CODE)) #define qdisc_tree_reduce_backlog(_a, _b, _c) qdisc_tree_decrease_qlen(_a, _b)