aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.0
Commit message (Collapse)AuthorAgeFilesLines
* kernel: remove lantiq specific ATM API hacks and their kernel space users ↵Felix Fietkau2015-09-171-14/+0
| | | | | | | | (fixes #20523) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46984
* kernel: unbreak atm ABI for 4.0 and 4.1John Crispin2015-09-161-7/+9
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46983
* generic: Fix per interface nf_call_iptables settingFelix Fietkau2015-09-091-179/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit r30917 ("kernel: bypass all netfilter hooks if the sysctls for that functionality have been disabled - eliminates the overhead of enabling CONFIG_BRIDGE_NETFILTER in the kernel config") introduced an optimization which should reduce/eliminate the overhead for traffic send over bridges on kernels compiled with CONFIG_BRIDGE_NETFILTER=y. But this optimization breaks the nf_call_iptables per bridge setting which is more fine grained than the global sysctl net.bridge.bridge-nf-call-iptables setting. A test reflecting a real world setup was created to identify if this really eliminates the overhead and if per-bridge nf_call_iptables could be used in some setups to increase the throughput. A Qualcomm Atheros QCA9558 based system with one ethernet and an ath9k wifi 3x3 in HT40 mode was used. Cables from the AP to the wifi station were used to reduce interference problems during the tests. The wlan interface was put in one bridge interface called br-wlan. This bridge usually contains some more wlan interfaces. The eth0 was put in a second bridge called br-lan. This usually contains some other privileged wlan or mesh interfaces. Routing was added between br-lan and br-wlan. Three kernels were tested: * (default) OpenWrt kernel for this device * (brfilter-global) OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y * (brfilter-local) OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y and without 644-bridge_optimize_netfilter_hooks.patch The changes to the the netfilter settings of the bridge were done via: * (brfilter-global) /sbin/sysctl -w net.bridge.bridge-nf-call-iptables=1 * (brfilter-lobal) echo 1 > /sys/class/net/br-lan/bridge/nf_call_iptables and/or echo 1 > /sys/class/net/br-wan/bridge/nf_call_iptables A station connected to the wlan0 (AP) interface was used to send traffic to a PC connected via ethernet. iperf with 3 concurrent transmissions was used to generate the traffic. | kernel | br-nf-* global | nf-call* iface | download | upload | |-----------------|----------------|----------------|----------|----------| | default | 0 | - | 209 | 268 | | brfilter-global | 0 | - | 185 | 243 | | brfilter-local | 0 | - | 187 | 243 | | brfilter-local | 0 | br-lan | 157 | 226 | | brfilter-local | 0 | br-lan br-wlan | 139 | 161 | | brfilter-global | 1 | - | 136 | 162 | Download/upload results in Mibit/s It can be seen that the patch doesn't eliminate the overhead. It can also be seen that the throughput of brfilter-global and brfilter-local with disabled filtering is the roughly the same. Also the throughput for brfilter-global and brfilter-local for enabled filtering on all bridges is roughly the same. But also the brfilter-local throughput is higher when only br-lan requires the filtering. This setting would not be possible with 644-bridge_optimize_netfilter_hooks.patch applied and thus can only be compared with brfilter-global and filtering enabled for all interfaces. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46835
* kernel: describe bridge patch "multicast to unicast"Rafał Miłecki2015-09-081-0/+5
| | | | | | It was initially added in r41367 by nbd. SVN-Revision: 46828
* kernel: describe bridge patch "optimize netfilter hooks"Rafał Miłecki2015-09-081-0/+7
| | | | | | It was initially added in r30917 by nbd. SVN-Revision: 46827
* kernel: describe bridge patch "remove IPv6 depependency of bridge in 2.6.38+"Rafał Miłecki2015-09-081-0/+13
| | | | | | It was initially added in r27237 by jow as patch from Jonas. SVN-Revision: 46826
* kernel: describe bridge patch "port isolate"Rafał Miłecki2015-09-081-0/+5
| | | | | | It was initially added in r25762 by nbd. SVN-Revision: 46825
* kernel: describe bridge patch "always accept EAP"Rafał Miłecki2015-09-081-0/+6
| | | | | | It was initially added in r26015 by nbd. SVN-Revision: 46824
* kernel: describe bridge patch "no EAP forward"Rafał Miłecki2015-09-081-0/+8
| | | | | | It was initially added in r25095 by nbd. SVN-Revision: 46823
* kernel: restore 640-bridge_no_eap_forward.patch to its original formFelix Fietkau2015-09-081-1/+1
| | | | | | | | | | It was corrupted in r38528. The most obvious symptom is repeated messages like this: Tue Sep 8 08:25:18 2015 kern.warn kernel: [77141.972226] br-lan: received packet on wlan0 with own address as source address Signed-off-by: Dmitry Ivanov <dima@ubnt.com> SVN-Revision: 46821
* mvebu: kirkwood: fix ehci-orion probe if generic-phy isn't enabledJonas Gorski2015-08-231-0/+35
| | | | | | | | | Properly treat -ENOSYS as no PHY, else ehci-orion won't work without generic phy support. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46711
* kernel: yaffs2: update to version from 2015-06-02Hauke Mehrtens2015-08-153-44/+101
| | | | | | | | | | In addition to the update this also fixes compile problems with kernel 4.1. This closes #20323. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46609
* kernel: cdc_ncm: Add support for moving NDP to end of NCM frameHauke Mehrtens2015-07-251-0/+228
| | | | | | | | | | | | This patch was missing for kernel 4.0 and 4.1 in r46464. I also replaced the version in OpenWrt with the version which went upstream into the Linux mainline kernel. This closes #20193 and #20192 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46493
* kmod-regmap: make regmap-mmio user selectableJonas Gorski2015-07-251-1/+2
| | | | | | | | | | | | | | | REGMAP_MMIO is a hidden symbol, so it cannot be directly selected. If nothing selects it, it will fail the build with: ERROR: module '/store/buildbot/slave/slave/rb532/build/build_dir/target-mipsel_mips32_musl-1.1.10/linux-rb532/linux-3.18.19/drivers/base/regmap/regmap-mmio.ko' is missing. make[2]: *** [/store/buildbot/slave/slave/rb532/build/bin/rb532/packages/base/kmod-regmap_3.18.19-1_rb532.ipk] Error 1 Fix this by adding a description to allow selecting it manually. Fixes: r46451 ("kmod-regmap: enable MMIO support") Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46485
* kernel: update 4.0 to 4.0.9Jonas Gorski2015-07-223-3/+3
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.9 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46440
* kernel: fix sched_getaffinity on MIPS SMP systems (fixes enabling RPS/XPS in ↵Felix Fietkau2015-07-181-0/+35
| | | | | | | | netifd with musl) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46420
* kernel: fix build with CONFIG_MTD unsetJohn Crispin2015-07-141-2/+11
| | | | | | | | | | Fixed typo in the patch provided by Hauke: https://lists.openwrt.org/pipermail/openwrt-devel/2015-July/034274.html Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 46346
* kernel: update 4.0 to 4.0.8Hauke Mehrtens2015-07-116-30/+28
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.8 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46300
* mips: Free memory when load_module fails (#14453)John Crispin2015-07-071-5/+6
| | | | | | | | | | | | | | | | | | | | | | The mips reloc patch introduced new allocations which were done before add_unformed_module but never freed them in case of an error. A new hook in Linux 3.19 called module_arch_freeing_init can be used for freeing memory which were allocated during this init phase. The problem can be seen when trying to load a module (via busybox insmod) when it was already loaded. free -m for i in `seq 1 100`; do /sbin/insmod /lib/modules/*/ath9k.ko >& /dev/null done free -m This simple loop would leak ~3.2 MB. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46247
* generic: mtd backport for Spansion S25FL164KJohn Crispin2015-07-071-0/+12
| | | | | | | | | Backport for the Spansion S25FL164K It's a 8 MiB flash chip with 4 KiB erase sectors. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 46237
* generic: Allow configuring an increment with mtd-mac-addressJohn Crispin2015-07-071-4/+8
| | | | | | | | | This is useful if the device also has an ethernet WAN interface with a separate mac address (that is derived from the LAN mac address). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> SVN-Revision: 46220
* kernel: generic: add missing arm machtypesJonas Gorski2015-07-051-1/+7
| | | | | | | | | Some machtypes were dropped when 4.0 support was added, and the incomplete patch was taken over to 4.1. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46187
* kernel: improve uapi headers coexistence with muslJonas Gorski2015-07-035-10/+328
| | | | | | | | | Make some network uapi headers detect if they are included after not only glibc but also musl headers. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46161
* kernel: update 4.0 to 4.0.7Jonas Gorski2015-06-304-8/+3
| | | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.6 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.7 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46151
* kernel: make USB_XHCI_PLATFORM selectableRafał Miłecki2015-06-211-0/+46
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46079
* kernel: update 4.0 to 4.0.5Jonas Gorski2015-06-194-5/+5
| | | | | | | | | Changelog: * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.5 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46063
* kernel: add linux 4.0 overlayfs locking fix by Miklos SzerediFelix Fietkau2015-06-171-0/+148
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46019
* kernel: backport config-related bcma patches from 4.2Rafał Miłecki2015-06-081-0/+49
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45927
* kernel: adjust mips highmem offset to avoid the need for -mlong-calls on ↵Felix Fietkau2015-06-051-0/+17
| | | | | | | | systems with >256M RAM Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45891
* kernel: backport ssb fix for WRT350N v1 (BCM4705) rebootsRafał Miłecki2015-06-011-4/+5
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45865
* generic/4.0: update to 4.0.4Imre Kaloz2015-05-2611-28/+22
| | | | | | | | | Update kernel sources and refresh some patches. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45761
* generic/4.0: fix error during kernel patch applicationSteven Barth2015-05-201-10/+3
| | | | | | | | | | | | | | | | | | | | Commit 5168c9a5702648eb690d32ec821647aca80aeba9 introduced a regression during patch application on the 4.0 kernel. Some of the patched content doesn't match the actual code, therefore leading to the following error: Applying patch generic/667-ipv6-Fixed-source-specific-default-route-handling.patch patching file net/ipv6/ip6_output.c Hunk #1 FAILED at 886. 1 out of 1 hunk FAILED -- rejects in file net/ipv6/ip6_output.c patching file net/ipv6/route.c Hunk #1 succeeded at 2247 (offset 2 lines). Patch generic/667-ipv6-Fixed-source-specific-default-route-handling.patch does not apply (enforce with -f) This change just adapts the actual patch to fix what is in kernel 4.0 and make it apply cleanly. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> SVN-Revision: 45705
* linux: backport IPv6 SAS fixes for source-specific routesSteven Barth2015-05-191-0/+104
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 45699
* kernel: backport struct ssb_sprom changes submitted by MIPS treeRafał Miłecki2015-05-131-0/+32
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45677
* mtd: remove the warning about read-only caused by size vs. block boundary ↵Felix Fietkau2015-05-101-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | mismatch Since the kernel/rootfs split handling was modified 2 years ago by r37283 ( https://dev.openwrt.org/changeset/37283 ) and by the subsequent checkins, users have seen rather scary mtd errors in the log at every boot. The message ends "-- forcing read-only", which looks a bit error-like. That error has been mentioned in some forum threads, when users have noticed this message instead of some actual error. [ 2.940000] 0x000000070000-0x000000ff0000 : "firmware" [ 2.970000] 2 netgear-fw partitions found on MTD device firmware [ 2.970000] 0x000000070000-0x000000188440 : "kernel" [ 2.980000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 2.990000] 0x000000188440-0x000000ff0000 : "rootfs" The patch removes the rather useless warning message. signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 45669
* kernel: fix regression in backtrace module info change (#19631)Felix Fietkau2015-05-101-13/+11
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45665
* kernel: when KALLSYMS is disabled, print module address + size for matching ↵Felix Fietkau2015-05-101-0/+38
| | | | | | | | backtrace entries Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45655
* kernel: fix pppoe disconnect issuesFelix Fietkau2015-05-092-0/+116
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45653
* kernel: backport first bcma patches from 4.2Rafał Miłecki2015-05-091-0/+37
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45652
* generic/4.0: update to 4.0.1Imre Kaloz2015-05-031-6/+6
| | | | | | | | | Also refresh one patch. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45601
* The ability to read MAC addresses from MTD is useful for other targets ↵Imre Kaloz2015-05-031-0/+75
| | | | | | | | besides ramips and lantiq as well. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 45596
* kernel: implement RENAME_EXCHANGE support for jffs2 - overlayfs requires itFelix Fietkau2015-04-251-0/+58
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45580
* kernel: backport rest of bgmac patches to 4.0Rafał Miłecki2015-04-2311-0/+824
| | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45573
* kernel: backport few bgmac patches to 4.0Rafał Miłecki2015-04-235-39/+605
| | | | | | | | | I still need to test following patch before backporting: bgmac: leave interrupts disabled as long as there is work to do Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45571
* generic/4.0: bump to final versionImre Kaloz2015-04-221-2/+2
| | | | | | | | | Linux 4.0 was released on 2014-04-12 Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45559
* kernel: refresh generic patchesJonas Gorski2015-04-1916-24/+24
| | | | | | | | | Refresh patches to remove the trailing whitespaces caused by an old diffutils version on osx. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45506
* kernel: finally remove layer7 filter supportFelix Fietkau2015-04-1319-2385/+24
| | | | | | | | | | | it has been non-functional for years and caused numerous memleaks and crashes for people that tried to enable it. it has no maintained upstream source, and it does not look like it's going to be fixed any time soon Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45423
* generic: make sure we only try to mangle bootargs we do haveImre Kaloz2015-04-121-9/+12
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45393
* kernel: revert section sorting change from r41951Felix Fietkau2015-04-113-5/+5
| | | | | | | | | It currently does not seem to make a difference anymore, except by increasing compressed kernel image size Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45385
* kernel: add jffs2 RENAME_WHITEOUT support, fixes overlayfs renames (#19432)Felix Fietkau2015-04-101-0/+86
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45362