openwrt/target/linux/ramips
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
..
base-files ramips: cleanup the RB750Gr3 support 2019-01-05 12:28:22 +01:00
dts ramips: fix firmware splitter for edimax based boards 2019-01-19 12:51:04 +01:00
files-4.14/drivers ramips: fix two-way hash and auto ageout on MT7621 2019-01-23 09:27:30 +01:00
image firmware-utils: mksercommfw: overhaul image creation 2019-01-15 19:11:54 +01:00
mt76x8 ramips: mt76x8: select only the matching mt76 driver 2018-12-06 12:17:25 +01:00
mt7620 ramips: mt7620: select only the matching mt76 driver 2018-12-03 15:34:56 +01:00
mt7621 ramips: mt7621: disable CONFIG_MTD_SPLIT_FIRMWARE 2018-12-13 13:39:56 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.91 2019-01-07 17:09:06 +01:00
rt288x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
rt305x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
rt3883 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk ramips: rename pwm kernel module 2018-04-08 12:35:33 +02:00