diff options
author | 2021-09-22 16:55:48 -0700 | |
---|---|---|
committer | 2021-09-23 13:14:19 +0100 | |
commit | e68daf61ed13832aef8892200a874139700ca754 (patch) | |
tree | 7a132333e80fa09ee2e2dd02edacc5b228ae79c6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nfc: st-nci: Add SPI ID matching DT compatible (diff) | |
download | linux-dev-e68daf61ed13832aef8892200a874139700ca754.tar.xz linux-dev-e68daf61ed13832aef8892200a874139700ca754.zip |
net: ethernet: mtk_eth_soc: avoid creating duplicate offload entries
Sometimes multiple CLS_REPLACE calls are issued for the same connection.
rhashtable_insert_fast does not check for these duplicates, so multiple
hardware flow entries can be created.
Fix this by checking for an existing entry early
Fixes: 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions