Skip to content

Commit

Permalink
cobalt_compat: Fix kernel version for qdisc_tree_reduce_backlog in 4.1
Browse files Browse the repository at this point in the history
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 <toke@redhat.com>
  • Loading branch information
tohojo committed May 28, 2020
1 parent 787329d commit a5dccfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cobalt_compat.h
Expand Up @@ -134,15 +134,15 @@ 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
4.5.5 onward
*/
#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)
Expand Down

0 comments on commit a5dccfd

Please sign in to comment.