OpenCloudOS-Kernel/drivers/net/ethernet/mediatek
Felix Fietkau e68daf61ed 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: 502e84e238 ("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>
2021-09-23 13:14:19 +01:00
..
Kconfig net: ethernet: mtk_eth_soc: implement dynamic interrupt moderation 2021-04-23 13:31:58 -07:00
Makefile net: ethernet: mtk_eth_soc: add flow offloading support 2021-03-24 12:48:40 -07:00
mtk_eth_path.c net: mtk_eth: simplify the mediatek code return expression 2020-12-14 17:51:26 -08:00
mtk_eth_soc.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
mtk_eth_soc.h net: ethernet: mtk_eth_soc: Fix packet statistics support for MT7628/88 2021-05-23 16:13:11 -07:00
mtk_ppe.c net: ethernet: mediatek: ppe: fix busy wait loop 2021-04-16 15:24:18 -07:00
mtk_ppe.h net: ethernet: mediatek: ppe: fix busy wait loop 2021-04-16 15:24:18 -07:00
mtk_ppe_debugfs.c net: ethernet: mtk_eth_soc: remove unused variable 'count' 2021-03-25 17:13:38 -07:00
mtk_ppe_offload.c net: ethernet: mtk_eth_soc: avoid creating duplicate offload entries 2021-09-23 13:14:19 +01:00
mtk_ppe_regs.h net: ethernet: mtk_eth_soc: add support for initializing the PPE 2021-03-24 12:48:39 -07:00
mtk_sgmii.c net: mediatek: remove unneeded semicolon 2019-10-28 16:36:24 -07:00
mtk_star_emac.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00