aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/trelay
Commit message (Collapse)AuthorAgeFilesLines
* kernel: replace SUBDIRS with M in package recipesTomasz Maciej Nowak2020-02-221-1/+1
| | | | | | | The SUBDIRS variable has been removed in kernel 5.4, and was deprecated since the beginnig of kernel git history in favour of M or KBUILD_EXTMOD. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
* trelay: log "started" and "stopped"Ali MJ Al-Nasrawy2019-10-121-0/+8
| | | | | | It is informative especially when using multiple device pairs. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* trelay: fix deadlock on removeAli MJ Al-Nasrawy2019-10-121-7/+21
| | | | | | | | | | | Upon writing to "remove" file, debugfs_remove_recursive() blocks while holding rtnl_lock. This is because debugfs' file_ops callbacks are executed in debugfs_use_file_*() context which prevents file removal. Fix this by only flagging the device for removal and then do the cleanup in file_ops.release callback which is executed out of that context. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* trelay: handle netdevice events correctlyAli MJ Al-Nasrawy2019-10-121-1/+1
| | | | | | | | | | | | | Since v3.11, netdevice notification data are of type "struct netdev_notifier_info". Handle it as such! This should fix a critical bug in which devices are unable get released because trelay does not release resources in response to UNREGISTER event spamming the log with something like: unregister_netdevice: waiting for eth0.1 to become free. Usage count = 1 Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* trelay: Install hotplug and config files as 600Rosen Penev2018-09-191-3/+3
| | | | | | | The hotplug file is ran by procd, which runs as root. The config file is used by the init script, which also runs as root. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* build: add KERNEL_MAKE and KERNEL_MAKE_FLAGS variables and move to kernel.mkFelix Fietkau2017-06-071-1/+1
| | | | | | | | This allows packages to use kernel make options without the forced -C $(LINUX_DIR). It also makes it more clear that it to be called from kernel module packages directly. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel/trelay: drop Build/Prepare rule in favor of default oneAlexandru Ardelean2016-10-151-5/+0
| | | | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* package: replace ifconfig-usage with ipSteven Barth2015-09-081-2/+2
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46832
* trelay: add conffiles sectionNicolas Thill2015-04-021-0/+4
| | | | | | Signed-off-by: Nicolas Thill <nico@openwrt.org> SVN-Revision: 45246
* packages: clean up the package folderJohn Crispin2013-06-216-0/+364
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37007