linux/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
Makefile
mtk_eth_path.c
mtk_eth_soc.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
mtk_eth_soc.h
mtk_ppe.c
mtk_ppe.h
mtk_ppe_debugfs.c
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
mtk_sgmii.c
mtk_star_emac.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00