ramips: add two-way hashing scheme for MT7621
authorHsiuWen Yen <y.hsiuwen@gmail.com>
Mon, 7 Jan 2019 08:29:35 +0000 (16:29 +0800)
committerJohn Crispin <john@phrozen.org>
Mon, 7 Jan 2019 14:40:51 +0000 (15:40 +0100)
commit6b9bdbd4935d3a9c8f22dde5d84abd173a1573ce
treec2f91c461ef725fde133b3f349cd08545949d07a
parentb3664bc7028b5c628e973e0b0f6dd9611067d78f
ramips: add two-way hashing scheme for MT7621

Sometimes the tuples might be hashed to the same FOE entry.
When this hash collision problem occurs, some of the
connections will not be bound and consequently the CPU
idle rate cannot reach 100%. Therefore, two-way hashing
is adopted to alleviate this problem.

Signed-off-by: HsiuWen Yen <y.hsiuwen@gmail.com>
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_offload.c