diff --git a/feeds/ipq807x/kmod-sched-cake/Makefile b/feeds/ipq807x/kmod-sched-cake/Makefile new file mode 100644 index 000000000..389e5ce19 --- /dev/null +++ b/feeds/ipq807x/kmod-sched-cake/Makefile @@ -0,0 +1,42 @@ +# +# Copyright (C) 2016 LEDE +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=sched-cake +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/dtaht/sch_cake.git +PKG_SOURCE_DATE:=2021-07-09 +PKG_SOURCE_VERSION:=d9e1398cc9091e9e7c7a740361e4617b75c24427 +#PKG_MIRROR_HASH:=5bf06a804824db36ae393fc174aeec7b12633176e05a765c0931b39df5bd34df +PKG_MAINTAINER:=Kevin Darbyshire-Bryant + +include $(INCLUDE_DIR)/package.mk + +define KernelPackage/sched-cake + SUBMENU:=Network Support + TITLE:=Cake fq_codel/blue derived shaper + URL:=https://github.com/dtaht/sch_cake + FILES:=$(PKG_BUILD_DIR)/sch_cake.ko + AUTOLOAD:=$(call AutoLoad,75,sch_cake) + DEPENDS:=+kmod-ipt-conntrack +endef + +include $(INCLUDE_DIR)/kernel-defaults.mk + +define KernelPackage/sched-cake/description + Common Applications Kept Enhanced fq_codel/blue derived shaper +endef + +define Build/Compile + $(KERNEL_MAKE) SUBDIRS="$(PKG_BUILD_DIR)" modules +endef + +$(eval $(call KernelPackage,sched-cake)) diff --git a/feeds/ipq807x/kmod-sched-cake/patches/100-compat.patch b/feeds/ipq807x/kmod-sched-cake/patches/100-compat.patch new file mode 100644 index 000000000..aaa1272b9 --- /dev/null +++ b/feeds/ipq807x/kmod-sched-cake/patches/100-compat.patch @@ -0,0 +1,20 @@ +Index: sched-cake-2021-07-09-d9e1398c/cobalt_compat.h +=================================================================== +--- sched-cake-2021-07-09-d9e1398c.orig/cobalt_compat.h ++++ sched-cake-2021-07-09-d9e1398c/cobalt_compat.h +@@ -95,15 +95,6 @@ static inline unsigned int __tcp_hdrlen( + } + #endif + +-#if KERNEL_VERSION(4, 6, 0) > LINUX_VERSION_CODE +-static inline int skb_try_make_writable(struct sk_buff *skb, +- unsigned int write_len) +-{ +- return skb_cloned(skb) && !skb_clone_writable(skb, write_len) && +- pskb_expand_head(skb, 0, 0, GFP_ATOMIC); +-} +-#endif +- + #if KERNEL_VERSION(4, 11, 0) > LINUX_VERSION_CODE + static inline int skb_mac_offset(const struct sk_buff *skb) + { diff --git a/profiles/wifi-ax.yml b/profiles/wifi-ax.yml index 378b2cada..8ca22f8c0 100644 --- a/profiles/wifi-ax.yml +++ b/profiles/wifi-ax.yml @@ -5,3 +5,4 @@ feeds: path: ../../feeds/wifi-ax packages: - wireless-regdb + - kmod-sched-cake