Commit graph

1371 commits

Author SHA1 Message Date
Jo-Philipp Wich
443b2dfe3c ar71xx: Fix tagged+untagged operation on AR8327N (#12181)
Replace the global "vlan_tagged" variable with an array storing the
tagging state per vlan.

The code was taken from #12181, tested and cleaned up by Saverio Proto
with additional bug fixes supplied by Álvaro Fernández.

Tested-by: Jo-Philipp Wich <jow@openwrt.org>
Signed-off-by: Saverio Proto <zioproto@gmail.com>
Signed-off-by: Álvaro Fernández <noltari@gmail.com>

SVN-Revision: 40777
2014-05-19 15:48:18 +00:00
Luka Perkov
645596489f kernel: update 3.14 to 3.14.4
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 40769
2014-05-14 21:49:27 +00:00
Hauke Mehrtens
de2585c79b kernel-3.14: add missing config symbols
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 40760
2014-05-14 09:55:55 +00:00
Hauke Mehrtens
a49ef16272 kernel: update to kernel 3.14.3
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40736
2014-05-08 21:53:27 +00:00
Hauke Mehrtens
6ae2278463 kernel: add missing config options for kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40735
2014-05-08 21:52:55 +00:00
Hauke Mehrtens
ff12bcef16 kernel: fix some compile warnings with kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40734
2014-05-08 21:52:40 +00:00
Hauke Mehrtens
100e795bcc kernel: fix warning in swconfig.c with kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40733
2014-05-08 21:52:19 +00:00
Hauke Mehrtens
c09007c1af kernel/generic: modify mtd related patches for 3.14
Function register_mtd_parser always returned 0 (at least since v3.3)
before being changed to return void in v3.14-rc1~65^2~93 (mtd: make
register_mtd_parser return void), so it's not needed to check the
return value of this function. Also add __init flag to caller.

This fix compile errors in 3.14 kernel like:
drivers/mtd/mtdsplit_seama.c: In function 'mtdsplit_seama_init':
drivers/mtd/mtdsplit_seama.c:99:2: error: void value not ignored as it ought to be
  return register_mtd_parser(&mtdsplit_seama_parser);
  ^

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>

SVN-Revision: 40731
2014-05-08 21:51:36 +00:00
Hauke Mehrtens
d064b747af kernel: add missing config options
These options are missing and were spotted by the buildbots.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40661
2014-05-02 21:08:22 +00:00
Hauke Mehrtens
e2cd04bfb3 kernel: fix compile error with gcc-4.8 and kernel 3.3
With gcc-4.8 I get a compile error with kernel 3.3.
This patch fixes this problem by backporting a patch from a more recent kernel version.

  CC      arch/mips/mm/page.o
arch/mips/mm/page.c:89:6: error: 'clear_page' alias in between function and variable is not supported
 void clear_page(void *page) __attribute__((alias("clear_page_array")));
      ^
arch/mips/mm/page.c:84:12: error: 'clear_page_array' aliased declaration [-Werror]
 static u32 clear_page_array[0x120 / 4];
            ^
arch/mips/mm/page.c:108:6: error: 'copy_page' alias in between function and variable is not supported
 void copy_page(void *to, void *from) __attribute__((alias("copy_page_array")));
      ^
arch/mips/mm/page.c:102:12: error: 'copy_page_array' aliased declaration [-Werror]
 static u32 copy_page_array[0x540 / 4];
            ^
arch/mips/mm/page.c:108:6: error: 'copy_page' alias in between function and variable is not supported
 void copy_page(void *to, void *from) __attribute__((alias("copy_page_array")));
      ^
arch/mips/mm/page.c:102:12: error: 'copy_page_array' aliased declaration [-Werror]
 static u32 copy_page_array[0x540 / 4];
            ^
arch/mips/mm/page.c:89:6: error: 'clear_page' alias in between function and variable is not supported
 void clear_page(void *page) __attribute__((alias("clear_page_array")));
      ^
arch/mips/mm/page.c:84:12: error: 'clear_page_array' aliased declaration [-Werror]
 static u32 clear_page_array[0x120 / 4];
            ^
cc1: all warnings being treated as errors
make[7]: *** [arch/mips/mm/page.o] Error 1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40619
2014-05-01 13:07:44 +00:00
Hauke Mehrtens
31ccc84c37 kernel: add missing config options
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40599
2014-04-29 21:03:00 +00:00
Hauke Mehrtens
b6ad77229f kernel: deactivate fs cache config option
r40587 added some kernel config options, on which these two ones depend.
This fixes the build of the buildbots.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40588
2014-04-28 21:40:09 +00:00
John Crispin
1b96cf30a9 linux/generic: add MIB counters and port status to ADM6996 switch
This patch adds port status information and MIB counters to the ADM6996
switch driver.

The driver supports also the older ADM6996L-variant, but I'm not able to
test this patch on that chip. According to the datasheet the same
registers exist there as well, so I think it should work, but any
feedback is appreciated.

Signed-off-by: Matti Laakso <malaakso at elisanet.fi>

SVN-Revision: 40542
2014-04-22 08:08:02 +00:00
Zoltan Herpai
248678fccd add missing symbols in prepping for afs patchset
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 40540
2014-04-21 18:16:03 +00:00
Zoltan Herpai
86e77c57f2 add missing symbols in prepping for afs patchset
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 40539
2014-04-21 18:14:17 +00:00
Zoltan Herpai
d2b3c52238 add missing symbols in prepping for afs patchset
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 40538
2014-04-21 18:13:19 +00:00
Felix Fietkau
25a1dcb37b generic: remove obsolete symbol export from block2mtd init patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40445
2014-04-10 14:43:22 +00:00
Felix Fietkau
f02e3a2a4a x86: try harder to attach block2mtd to fix boot issues on devices with longer delays
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40444
2014-04-10 14:43:17 +00:00
Hauke Mehrtens
64f54741e3 kernel: bgmac: rework patch checking packet length
This bgmac patch was an attempt to fix/workaround bug reported in
https://dev.openwrt.org/ticket/7198 noticed on WNR3500L.
Patch assumed length reported by the hardware was 0 and was trying to
read it until getting a different value. This was actually the opposite.
Lenghts were some invalid & huge values that resulted in skb_over_panic.
For example:
skbuff: skb_over_panic: text:83b21074 len:57222 (...)
skbuff: skb_over_panic: text:87af1024 len:43226 (...)
skbuff: skb_over_panic: text:87af5024 len:8739 (...)

So instead of that not-working patch checking for 0, write a new one
checking for huge values. In case something like that happens, dump
hardware state and drop the packet.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 40424
2014-04-08 19:50:17 +00:00
John Crispin
1978620045 kernel: add a ubi forced detach ioctl
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40417
2014-04-07 15:10:18 +00:00
Jonas Gorski
a8363fadcd kernel: make sched_act_connmark compile for 3.14
The upstream API changed, which allowed to simplify the code a bit.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 40376
2014-04-04 10:16:49 +00:00
Jonas Gorski
96c4e3eed0 kernel: make sched_esfq compile for 3.14
net_random was replaced with prandom_u32.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 40375
2014-04-04 10:16:47 +00:00
Jonas Gorski
e24b601b56 kernel: add missing config symbol for linux 3.14
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 40374
2014-04-04 10:16:44 +00:00
Imre Kaloz
36fefbb60e 3.14 final is out
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 40352
2014-03-31 13:43:06 +00:00
Hauke Mehrtens
bdde12b13a kernel: backport BCM5357 fix for GPIOs
This backports: bcma: gpio: register 32 GPIOs on BCM5357

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 40347
2014-03-30 19:08:37 +00:00
John Crispin
3972b47458 revert: kernel: rtl8306: fix max pvid & remove port isolation
apparently this one was nt a good idea to merge

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40330
2014-03-30 10:04:55 +00:00
John Crispin
bc03add273 kernel: export gluebi info to sysfs
Export the ubi_num and vol_id into the sysfs record of the gluebi-
emulated mtd device. Previously userspace didn't have a way to
map gluebi-emulated devices back to their corresponding ubi volumes.

SVN-Revision: 40306
2014-03-30 09:15:20 +00:00
John Crispin
deba38f2a7 kernel: rtl8306: fix vlan support on lantiq ar9 p2601hnfx
If the CPU port is not forced up, the link, at least on this board, is lost after
changes are applied. This makes sure that the link is restored. Regression tests
should confirm it doesn't break other boards.

Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40305
2014-03-30 09:15:16 +00:00
John Crispin
72cdb34ae8 kernel: rtl8306: fix max pvid & remove port isolation
- hide port pvid - vlan index relation
- switch initialises with vlans disabled so port isolation is not used
- remove special treatment of cpu port

Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40304
2014-03-30 09:15:11 +00:00
John Crispin
6a72dc4082 kernel: rtl8306: cosmetic changes for swconfig
Changes to:
- show the correct "enable_vlan" value under "Global attributes"
- show tagged ports under "Vlan: ports"
- use get_port_link method to report link status

Signed-off-by: Antonios Vamporakis <ant@area128.com>

SVN-Revision: 40303
2014-03-30 09:15:07 +00:00
Gabor Juhos
627baa28d3 kernel: update 3.10 to 3.10.34
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40291
2014-03-27 09:28:33 +00:00
Imre Kaloz
132f7d3cc9 update to 3.14-rc8
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 40023
2014-03-26 14:14:20 +00:00
Imre Kaloz
b8e295aa7b upgrade 3.13 targets to 3.13.7
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 40022
2014-03-26 11:34:39 +00:00
Felix Fietkau
479b0c82a2 kernel/generic: fix define in 642-bridge_port_isolate.patch
Patch 642-bridge_port_isolate.patch needs to be updated
for kernels 3.12, 3.13 and 3.14 as the define for BR_ISOLATE_MODE
conflicts with BR_LEARNING

Signed-off-by: Jonas Eymann <j.eymann@gmx.net>

SVN-Revision: 39955
2014-03-19 14:26:48 +00:00
Hauke Mehrtens
fbb5b8af8e kernel: fix 990-gpio_wdt.patch patch
This uses the correct include now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 39906
2014-03-12 23:29:42 +00:00
Hauke Mehrtens
128bb9f1a3 kernel: add missing config options for kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 39904
2014-03-12 23:16:27 +00:00
Florian Fainelli
f664976483 kernel: backport ARM memset fixes for GCC 4.7/4.8
Now that GCC 4.8 is the default, make sure that we have the relevant
memset fixes to avoid nasty kernel crashes.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39902
2014-03-12 22:08:59 +00:00
Luka Perkov
c8b116d930 kernel/generic: drop already upstreamed patch
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 39855
2014-03-10 01:06:48 +00:00
Imre Kaloz
074af75668 add preliminary 3.14 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 39789
2014-03-07 11:27:00 +00:00
Zoltan Herpai
2c771cc71f kernel: add missing config symbols to 3.13
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 39781
2014-03-05 23:32:00 +00:00
Jonas Gorski
8ffe7e9d41 kernel: add missing config symbol to 3.13
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39745
2014-02-24 15:53:58 +00:00
Gabor Juhos
f677b1bc7e kernel: update 3.10 to 3.10.32
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39707
2014-02-23 10:59:40 +00:00
Jonas Gorski
c1f397e1e1 b53: Make b53_switch_init static
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Patchwork: http://patchwork.openwrt.org/patch/4869/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39683
2014-02-22 11:16:58 +00:00
Jonas Gorski
9eb60826f2 b53: Add BCM53128 switch support
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Patchwork: http://patchwork.openwrt.org/patch/4867/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39682
2014-02-22 11:16:56 +00:00
Gabor Juhos
ab6e3af7fc kernel/3.10: improve fq_codel hashing for 6in4 6to4 801.ad and IPIP cases
This is a backport of code to improve the quality of fq_codel
hashing for 3.10 for some encapsulated protocols.

Not needed in 3.11 and later.

Patch-by: Dave Taht <dave.taht@bufferbloat.net>
Patchwork: http://patchwork.openwrt.org/patch/4902/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39640
2014-02-20 17:07:44 +00:00
Nicolas Thill
cd164501b9 sunxi: move a lost CONFIG_CHARGER symbol to generic
SVN-Revision: 39634
2014-02-19 00:17:19 +00:00
Gabor Juhos
2288dd072b kernel: refresh configs with kconfig.pl
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39627
2014-02-18 17:34:18 +00:00
Zoltan Herpai
f57f19ed81 3.13: revert r39601 as the symbol is already there
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 39602
2014-02-17 11:49:34 +00:00
Zoltan Herpai
a3dfcac7ba 3.13: add missing NF_TABLES symbol - until someone packages it
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 39601
2014-02-17 10:57:11 +00:00
Zoltan Herpai
e82a230930 3.13: add missing symbol
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 39600
2014-02-17 10:20:53 +00:00