immortalwrt/target/linux
HsiuWen Yen fe7d965ea9 ramips: fix two-way hash and auto ageout on MT7621
Current code directly writes the FOE entry to hash_val+1 position
when hash collision occurs. However, it is found that this behavior
will cause the cache and the hardware FOE table to be inconsistent.

For example, there are three flows, and their hashed values are all
equal to 100. The first flow is written to the position of 100. The
second flow is written to the position of 100+1. Then, the logic of
the current code will also write the third flow to 100+1.

At this time, the cache has flow 1 and 2; and the hardware FOE table
has flow 1 and 3, where these two parts store different contents.
So it is necessary to check whether the hash_val+1 is also occupied
before writing. If hash_val+1 is also occupied, we won’t bind th
third flow to the FOE table.

Addition to that, we also cancel the processing of foe_entry removal
because the hardware has auto age-out ability. The hardware will
periodically iterate through the FOE table to find out the time-out
entry and set it as INVALID.

Signed-off-by: HsiuWen Yen <y.hsiuwen@gmail.com>
2019-01-23 09:27:30 +01:00
..
adm5120
adm8668
apm821xx kernel: bump 4.19 to 4.19.16 2019-01-17 03:04:13 +02:00
ar7
ar71xx ar71xx: ag71xx: preserve port mirror flags during swconfig apply 2019-01-22 09:05:59 +01:00
arc770
archs38
armvirt
at91 kernel: Deactivate CONFIG_COMPAT_BRK 2018-12-26 17:32:48 +01:00
ath25
ath79 ath79: fix port order for dir 825-c1 and 835-a1 2019-01-22 09:05:59 +01:00
au1000
bcm53xx bcm53xx: add support for Phicomm K3 2019-01-20 23:34:44 +01:00
brcm47xx kernel: bump 4.19 to 4.19.16 2019-01-17 03:04:13 +02:00
brcm63xx brcm63xx: remove broken DSP platform device code 2018-12-30 13:22:13 +01:00
brcm2708 kernel: bump 4.9 to 4.9.150 2019-01-16 12:56:30 +01:00
cns3xxx kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
gemini kernel: Deactivate CONFIG_COMPAT_BRK 2018-12-26 17:32:48 +01:00
generic kernel: N_BADCLASS: fix macro to actually work - class e support 2019-01-19 20:45:49 +00:00
imx6
ipq40xx kernel: bump 4.19 to 4.19.16 2019-01-17 03:04:13 +02:00
ipq806x kernel: bump 4.14 to 4.14.91 2019-01-07 17:09:06 +01:00
ixp4xx
kirkwood
lantiq
layerscape kernel: bump 4.14 to 4.14.91 2019-01-07 17:09:06 +01:00
malta malta: Add support for kernel 4.19 2019-01-13 16:31:40 +01:00
mcs814x
mediatek kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
mpc85xx kernel: bump 4.19 to 4.19.16 2019-01-17 03:04:13 +02:00
mvebu
mxs
octeon octeon: fix typo in platform.sh 2019-01-12 19:40:13 +01:00
octeontx
omap
omap24xx
orion
oxnas kernel: Deactivate CONFIG_COMPAT_BRK 2018-12-26 17:32:48 +01:00
pistachio kernel: bump 4.14 to 4.14.91 2019-01-07 17:09:06 +01:00
ppc40x
ppc44x
ramips ramips: fix two-way hash and auto ageout on MT7621 2019-01-23 09:27:30 +01:00
rb532
samsung kernel: Deactivate CONFIG_COMPAT_BRK 2018-12-26 17:32:48 +01:00
sunxi sunxi: Add support for kernel 4.19 2019-01-13 17:35:14 +01:00
uml
x86 x86: Add support for kernel 4.19 2019-01-12 22:40:36 +01:00
xburst
zynq kernel: Deactivate CONFIG_COMPAT_BRK 2018-12-26 17:32:48 +01:00
Makefile