From 8b93a2420850a1bef4f5e72636604c3a7748a65d Mon Sep 17 00:00:00 2001 From: Pawel Dembicki Date: Fri, 10 Apr 2020 08:56:37 +0200 Subject: [PATCH 1/4] ramips: mt7620: fix missplaced line in 01_leds This patch adds missed line in 01_leds and fix error: "/bin/board_detect: /etc/board.d/01_leds: line 93: syntax error: unexpected ")" (expecting ";;")" Fixes: c948a47 ("ramips: add support for D-Link DWR-960") Signed-off-by: Pawel Dembicki --- target/linux/ramips/mt7620/base-files/etc/board.d/01_leds | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index e4fd875019..d332e02bbd 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -90,6 +90,7 @@ dlink,dwr-922-e2) dlink,dwr-960) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x2e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" + ;; dovado,tiny-ac) set_wifi_led "$boardname:orange:wifi" ;; From 1e3d3d2bd5da9d0c4069a4049358fa983dffa8bd Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Fri, 10 Apr 2020 11:37:26 +0100 Subject: [PATCH 2/4] tools/e2fsprogs: fix build under macos macos doesn't define a loff_t type, the native off_t type being 64bit anyway. Persuade e2fsprogs to accept off_t instead on macos Signed-off-by: Kevin Darbyshire-Bryant --- tools/e2fsprogs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/e2fsprogs/Makefile b/tools/e2fsprogs/Makefile index 039959e424..d7c994c338 100644 --- a/tools/e2fsprogs/Makefile +++ b/tools/e2fsprogs/Makefile @@ -21,7 +21,7 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk ifneq ($(shell $(HOSTCC) --version | grep clang),) - HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0 + HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0 -Dloff_t=off_t endif HOST_CFLAGS += $(FPIC) From c39d01596a8acbdfa5d1ccb98ba0624383a7190a Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Thu, 9 Apr 2020 15:22:23 +0100 Subject: [PATCH 3/4] .gitignore: ignore more scripts/config output dcf3e63a35 added a newer kconfig version which produces a bit more local code output, add that output to the ignore list Signed-off-by: Kevin Darbyshire-Bryant --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 6549af83be..55072ca5bd 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,10 @@ /overlay /package/feeds /package/openwrt-packages +scripts/config/mconf_check +scripts/config/zconf.hash.c +scripts/config/zconf.lex.c +scripts/config/zconf.tab.c /*.patch key-build* *.orig From 1b973b54ea4d5d20dec5e71c48bff6a3e0bcb4ac Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Thu, 9 Apr 2020 09:19:13 +0100 Subject: [PATCH 4/4] kmod-sched: add act_police "Whoop whoop, sound of da police" Add an ingress capable traffic policer module configurable with tc. From the man page: The police action allows to limit bandwidth of traffic matched by the filter it is attached to. Basically there are two different algorithms available to measure the packet rate: The first one uses an internal dual token bucket and is configured using the rate, burst, mtu, peakrate, overhead and linklayer parameters. The second one uses an in-kernel sampling mechanism. It can be fine-tuned using the estimator filter parameter. Signed-off-by: Kevin Darbyshire-Bryant --- package/kernel/linux/modules/netsupport.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 6dade49bad..75222889c0 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -867,6 +867,16 @@ define KernelPackage/sched-ctinfo endef $(eval $(call KernelPackage,sched-ctinfo)) +define KernelPackage/sched-police + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=Traffic shaper police support + DEPENDS:=+kmod-sched-core + KCONFIG:=CONFIG_NET_ACT_POLICE + FILES:=$(LINUX_DIR)/net/sched/act_police.ko + AUTOLOAD:=$(call AutoLoad,71, act_police) +endef +$(eval $(call KernelPackage,sched-police)) + define KernelPackage/sched-ipset SUBMENU:=$(NETWORK_SUPPORT_MENU) TITLE:=Traffic shaper ipset support