Add a new txqueuelen option to /etc/config/network which allows
to set the corresponding parameter for an interface

Signed-off-by: Roberto Riggio<roberto.rig...@create-net.org>


--
Index: package/base-files/files/lib/network/config.sh
===================================================================
--- package/base-files/files/lib/network/config.sh      (revision 21196)
+++ package/base-files/files/lib/network/config.sh      (working copy)
@@ -259,8 +259,9 @@
                local mtu macaddr
                config_get mtu "$config" mtu
                config_get macaddr "$config" macaddr
+               config_get txqueuelen "$config" txqueuelen
                [ -n "$macaddr" ]&&  $DEBUG ifconfig "$iface_main" down
-               $DEBUG ifconfig "$iface_main" ${macaddr:+hw ether "$macaddr"} 
${mtu:+mtu $mtu} up
+               $DEBUG ifconfig "$iface_main" ${macaddr:+hw ether "$macaddr"} 
${mtu:+mtu $mtu} ${txqueuelen:+txqueuelen $txqueuelen} up
        }
        set_interface_ifname "$config" "$iface_main"



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to