aboutsummaryrefslogtreecommitdiff
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-11-09 15:18:39 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-11-10 12:30:34 +0100
commit01d675687ca34aa1eb5b05ad8268a130dc2e2b5a (patch)
tree6735d5fb984a27f88468e2820c5c67c019f2cb61 /package/base-files/files/lib
parentda7ad229311e6c68b023550f383d932dfd62d13b (diff)
base-files: add additional uci-defaults function for GRO and conduit
Add additional uci-defaults function for configuring GRO settings and conduit for network devices. Tweaking the GRO values might increase performance on some low spec device that lack some offload feature on gmac. Tweaking conduit interface is specific to DSA based devices and is useful for multi-CPU scenario where one CPU is dedicated to one single port. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r--package/base-files/files/lib/functions/uci-defaults.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index d40f4354ad..a75bd11652 100644
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -122,6 +122,14 @@ ucidef_set_network_device_path() {
_ucidef_set_network_device_common $1 path $2
}
+ucidef_set_network_device_gro() {
+ _ucidef_set_network_device_common $1 gro $2
+}
+
+ucidef_set_network_device_conduit() {
+ _ucidef_set_network_device_common $1 conduit $2
+}
+
_ucidef_add_switch_port() {
# inherited: $num $device $need_tag $want_untag $role $index $prev_role
# inherited: $n_cpu $n_ports $n_vlan $cpu0 $cpu1 $cpu2 $cpu3 $cpu4 $cpu5