aboutsummaryrefslogtreecommitdiff
path: root/package/network/config/netifd/files/etc/init.d
Commit message (Collapse)AuthorAge
* netifd: packet_steering: fix shell error on unset steering_flows optionFelix Fietkau2024-04-27
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* netifd: fix bogus warnings in packet_steering init scriptFelix Fietkau2024-04-27
| | | | | | Avoids warnings if options are unset Signed-off-by: Felix Fietkau <nbd@nbd.name>
* netifd: add flow steering mode to the packet steering scriptFelix Fietkau2024-04-26
| | | | | | | This allows directing processing of locally received packets to the CPUs of the tasks receiving them Signed-off-by: Felix Fietkau <nbd@nbd.name>
* netifd: rewrite packet steering scriptFelix Fietkau2024-04-14
| | | | | | | | | | | The new script uses a different strategy compared to the previous one. Instead of trying to split flows by hash and spread them to all CPUs, use RPS to redirect packets to a single core only. Try to spread NAPI thread and RPS target CPUs across available CPUs and try to ensure that the NAPI thread is on a different CPU than the RPS target. This significantly reduces cycles wasted on the scheduler. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* netifd: refactor packet steering initRafał Miłecki2023-02-15
| | | | | | | | 1. Move setup code to independent script file 2. Add init.d script to allow automatic updates 3. Support platform specific /usr/libexec/platform/packet-steering.sh Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* netifd,lldpd,rpcd,log: use generic service_runningPetr Štetiar2019-09-15
| | | | | | | | | | | | | | | | | | commit eb204d14f75c ("base-files: implement generic service_running") introduced generic service_running so it's not needed to copy&paste same 3 lines over and over again. I've removed service_running from netifd/network init script as well, because it was not working properly, looked quite strange and I didn't understand the intention: $ /etc/init.d/network stop $ service network running && echo "yes" || echo "nope" ( have to wait for 30s ) Command failed: Request timed out yes Signed-off-by: Petr Štetiar <ynezz@true.cz>
* netifd: add support for the new ar8xxx MIB counters settingsPetr Štetiar2019-05-20
| | | | | | | | | Commit "generic: ar8216: add mib_poll_interval switch attribute" has added mib_poll_interval global config option and commit "generic: ar8216: group MIB counters and use two basic ones only by default" has added mib_type config option. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* netifd: do not validate relevant section when ipv6 is not supportedRosy Song2018-09-25
| | | | Signed-off-by: Rosy Song <rosysong@rosinson.com>
* netifd: return error status in reload_serviceHans Dedecker2017-04-24
| | | | | | | | Based on a patch by Alexandru Ardelean. netifd ubus reload call returns the actual reload error status; return error status as well in reload_service Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: fix stopping netifd + interfacesFelix Fietkau2017-02-23
| | | | | | | stop() is overwritten by rc.common, so implement stop_service instead. While at it, remove the now unnecessary restart() override Signed-off-by: Felix Fietkau <nbd@nbd.name>
* base-files: set kernel.core_pattern in sysctl.confFelix Fietkau2015-09-11
| | | | | | | | | | Move the pattern setting from netifd's service script to /etc/sysctl.conf. Put the timestamp component '%t' just after executable name '%e' for more natural order from output of ls command. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 46867
* netifd: do not stop service on shutdown, only call ifdownFelix Fietkau2015-01-24
| | | | | | | | Also add a small delay, like on restart Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44096
* netifd: fix an error message during network shutdownSteven Barth2014-10-02
| | | | | | | | | | | | | When 'wifi down' is called by /etc/init.d/network, it is run from stop_service( ). This function is in turn invoked from stop( ). stop( ) messes up the order by first procd_kill-ing the network settings, then calling wifi to down the wifi networking interfaces. By redefining stop( ) instead, the proper order is restored. Signed-off-by: Michel Stam <m.stam@fugro.nl> SVN-Revision: 42745
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-08-25
| | | | | | | | | | | | | | | | | | | | | | somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42278
* netifd: use procd_add_reload_triggerFelix Fietkau2014-06-11
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41147
* netfid: make procd watch the network.interface object for eventsJohn Crispin2014-06-05
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41010
* netifd: replace the sleep 5 with an ubus wait_for call to speed up init scriptFelix Fietkau2014-05-31
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40891
* netifd: fix validation constraintsJo-Philipp Wich2014-02-21
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 39648
* netifd: add validation supportJohn Crispin2014-02-18
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39621
* netifd: initialize the switch early at start time and on reload (fixes #13015)Felix Fietkau2013-12-31
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39183
* netifd: add reload trigger for /etc/config/wireless as wellJo-Philipp Wich2013-12-18
| | | | SVN-Revision: 39131
* netifd: prevent an unnecessary restart of netifd-managed wifi interfaces at ↵Felix Fietkau2013-12-13
| | | | | | | | boot time Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39046
* netifd: enable coredumps againJohn Crispin2013-12-09
| | | | | | | | got broken due procd startup. Requires procd resource limit patch. Signed-off-by: Ulrich Weber <uw@xyne.com> SVN-Revision: 39020
* wifi: rename the "reload" (restarting non-netifd wifi) command to ↵Felix Fietkau2013-12-02
| | | | | | | | | | "reload_legacy" Add a new "reload" command that reloads the netifd config as well Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38989
* netifd: add wireless configuration support and port mac80211 to the new ↵Felix Fietkau2013-12-02
| | | | | | | | framework Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38988
* netifd: remove redundant calls to /sbin/wifi downFelix Fietkau2013-12-02
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38982
* procd: convert various packages to procd style init.d scriptsJohn Crispin2013-09-17
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38023
* netifd: bring wifi down before shutting downJonas Gorski2013-06-08
| | | | | | | | works around wifiX references not being freed on network restart. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 36883
* netifd: add a band-aid fix for the wifi setup vs. netifd init race by ↵Jo-Philipp Wich2013-01-19
| | | | | | increasing the wait time to five seconds SVN-Revision: 35240
* packages: sort network related packages into package/network/Felix Fietkau2012-10-10
SVN-Revision: 33688