aboutsummaryrefslogtreecommitdiff
path: root/package/network/config/swconfig/src/uci.c
Commit message (Collapse)AuthorAge
* swconfig: parse "switch_vlan" before "switch_port"Rafał Miłecki2022-06-15
| | | | | | | | | | | | | | | Before this change UCI sections of both types were parsed in order as specified in UCI. That didn't work well with all drivers (e.g. b53). It seems that VLAN setup can reset / overwrite previously set ports parameters. It resulted in "switch_port" options defined above "switch_vlan"s being silently ignored. Ideally swconfig & all drivers should be improved to handle that properly but it'd be a waste of time at this point as DSA replaces swconfig. Use this minor parsing change as a quick fix. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* swconfig: swlib_map_settings(): change return type to voidAlexander Couzens2018-06-29
| | | | | | | | The return value of the function isn't used anywhere. Fixes missing return value, CID 1329717. Found-by: Coverity Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* swconfig: Bugfix switch_port uci option parsingBen Kelly2017-02-23
| | | | | | | | When not defining 'device' or 'vlan' in relevant switch_port uci sections, behaviour is inconsistent due to *devn, *port and *vlan pointers not being zero initialized. Signed-off-by: Ben Kelly <ben@benjii.net>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-07
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* swconfig: remove useless variables, return -1 on errorsJohn Crispin2013-12-27
| | | | | | | | spotted with cppcheck Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> SVN-Revision: 39170
* move lots of kernel related packages to the new system/ folderJohn Crispin2012-10-17
SVN-Revision: 33830