Skip to content

Commit

Permalink
qosify: update to the latest version
Browse files Browse the repository at this point in the history
68961a555e42 ubus: drop dnsmasq check for dns_result method
1ca3e26b8169 bpf: refactor code to support explicit opt-in for bulk+prio detection
3f0acf039f41 bpf: move flow prio/bulk detection config into a separate data structure
bc54c97e3333 map, bpf: create a separate map for configured dscp classes
46cf3eae2d99 bpf: fix bulk flow detaction
88f1db7dd611 bpf: fix priority flow detection
b5dec7874373 bpf: remove access to skb->gso_size
e728a319a9a5 interface: unify status, always include ifname, ingress, egress

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Nov 19, 2021
1 parent 8f355be commit 0351a5f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
6 changes: 3 additions & 3 deletions package/network/config/qosify/Makefile
Expand Up @@ -11,9 +11,9 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=qosify
PKG_SOURCE_URL=$(PROJECT_GIT)/project/qosify.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2021-11-12
PKG_SOURCE_VERSION:=bfc2cafe2a8c66ffab88a7e5c1ad1b0a4d886271
PKG_MIRROR_HASH:=88990d5816f37ba1e334499e7ee53a364fa0ba1e5751a91ef0a94934cd2a5451
PKG_SOURCE_DATE:=2021-11-19
PKG_SOURCE_VERSION:=e728a319a9a5ac692d18fef936e6ac4377f1bbf1
PKG_MIRROR_HASH:=86362483e4462a9dc4c4c31363a9a43a140472f105da363053e07e2486fff24f

PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
Expand Down
6 changes: 3 additions & 3 deletions package/network/config/qosify/files/qosify.conf
Expand Up @@ -8,15 +8,15 @@ config defaults
option bulk_trigger_pps 100
option prio_max_avg_pkt_len 500

config alias bulk
config class bulk
option ingress LE
option egress LE

config alias video
config class video
option ingress AF41
option egress AF41

config alias voice
config class voice
option ingress CS6
option egress CS6

Expand Down
28 changes: 18 additions & 10 deletions package/network/config/qosify/files/qosify.init
Expand Up @@ -15,6 +15,16 @@ add_option() {
[ -n "$val" ] && json_add_$type "$name" "$val"
}

add_flow_config() {
local cfg="$1"

add_option string dscp_prio
add_option string dscp_bulk
add_option int bulk_trigger_timeout
add_option int bulk_trigger_pps
add_option int prio_max_avg_pkt_len
}

add_defaults() {
cfg="$1"

Expand All @@ -27,15 +37,11 @@ add_defaults() {
done
json_close_array

add_flow_config "$cfg"
add_option int timeout
add_option string dscp_prio
add_option string dscp_bulk
add_option string dscp_icmp
add_option string dscp_default_udp
add_option string dscp_default_tcp
add_option int bulk_trigger_timeout
add_option int bulk_trigger_pps
add_option int prio_max_avg_pkt_len
}

add_interface() {
Expand Down Expand Up @@ -71,17 +77,18 @@ add_interface() {
json_close_object
}

add_alias() {
add_class() {
local cfg="$1"

config_get value "$cfg" value
config_get ingress "$cfg" ingress
config_get egress "$cfg" egress

json_add_array "$cfg"
json_add_object "$cfg"
json_add_string ingress "${ingress:-$value}"
json_add_string egress "${egress:-$value}"
json_close_array
add_flow_config "$cfg"
json_close_object
}


Expand All @@ -96,8 +103,9 @@ reload_service() {
config_foreach add_interface interface
json_close_object

json_add_object aliases
config_foreach add_alias alias
json_add_object classes
config_foreach add_class class
config_foreach add_class alias
json_close_object

json_add_object devices
Expand Down

0 comments on commit 0351a5f

Please sign in to comment.