1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlx5/core
Maor Gottlieb b9e8f9d139 net/mlx5: Fix deletion of duplicate rules
[ Upstream commit 465e7baab6 ]

When a rule is duplicated, the refcount of the rule is increased so only
the second deletion of the rule should cause destruction of the FTE.
Currently, the FTE will be destroyed in the first deletion of rule since
the modify_mask will be 0.
Fix it and call to destroy FTE only if all the rules (FTE's children)
have been removed.

Fixes: 718ce4d601 ("net/mlx5: Consolidate update FTE for all removal changes")
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-18 19:20:26 +01:00
..
accel net/mlx5: Deprecate usage of generic TLS HW capability bit 2020-02-11 04:35:51 -08:00
diag net/mlx5: Fix failing fw tracer allocation on s390 2020-05-02 08:48:52 +02:00
en net/mlx5e: Fix 50G per lane indication 2020-07-16 08:16:41 +02:00
en_accel net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported 2020-09-26 18:03:14 +02:00
fpga net/mlx5: IPsec, fix memory leak at mlx5_fpga_ipsec_delete_sa_ctx 2020-02-11 04:35:50 -08:00
ipoib net/mlx5e: Fix inner tirs handling 2020-06-03 08:21:03 +02:00
lib net/mlx5: Don't call timecounter cyc2time directly from 1PPS flow 2020-10-29 09:57:39 +01:00
steering net/mlx5: DR, Change push vlan action sequence 2020-08-19 08:16:19 +02:00
Kconfig drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
Makefile net/mlx5: Add direct rule fs_cmd implementation 2019-09-03 12:54:23 -07:00
alloc.c
cmd.c net/mlx5: Avoid possible free of command entry while timeout comp handler 2020-10-14 10:33:04 +02:00
cq.c
debugfs.c mlx5: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
dev.c net/mlx5: Use reversed order when unregister devices 2019-07-25 13:30:59 -07:00
devlink.c net/mlx5e: Add missing release firmware call 2020-04-21 09:04:49 +02:00
devlink.h
ecpf.c
ecpf.h
en.h net/mlx5e: Add resiliency in Striding RQ mode for packets larger than MTU 2020-10-14 10:33:04 +02:00
en_arfs.c net/mlx5e: Use flow keys dissector to parse packets for ARFS 2019-08-08 13:01:18 -07:00
en_common.c net/mlx5e: Tx, Soften inline mode VLAN dependencies 2019-08-01 12:33:31 -07:00
en_dcbnl.c net/mlx5e: Tx, Soften inline mode VLAN dependencies 2019-08-01 12:33:31 -07:00
en_dim.c
en_ethtool.c net/mlx5e: Fix 50G per lane indication 2020-07-16 08:16:41 +02:00
en_fs.c net/mlx5e: Fix VLAN create flow 2020-10-14 10:33:05 +02:00
en_fs_ethtool.c net/mlx5e: Fix traffic duplication in ethtool steering 2019-09-24 12:38:08 +03:00
en_main.c net/mlx5e: Fix driver's declaration to support GRE offload 2020-10-14 10:33:06 +02:00
en_rep.c net/mlx5e: Modify uplink state on interface up/down 2020-08-05 09:59:47 +02:00
en_rep.h net/mlx5e: Remove leftover declaration 2019-09-05 14:44:41 -07:00
en_rx.c net/mlx5e: IPoIB, Drop multicast packets that this interface sent 2020-06-22 09:31:06 +02:00
en_selftest.c net/mlx5e: Fix ethtool self test: link speed 2019-10-29 16:27:20 -07:00
en_stats.c mlx5: work around high stack usage with gcc 2020-02-24 08:36:44 +01:00
en_stats.h net/mlx5e: kTLS, Enhance TX resync flow 2019-10-18 12:11:54 -07:00
en_tc.c net/mlx5e: Fix nest_level for vlan pop action 2020-04-21 09:04:49 +02:00
en_tc.h net/mlx5e: Refactor neigh update for concurrent execution 2019-08-21 15:55:17 -07:00
en_tx.c net/mlx5e: Update netdev txq on completions during closure 2020-06-03 08:21:04 +02:00
en_txrx.c net/mlx5e: Don't trigger IRQ multiple times on XSK wakeup to avoid WQ overruns 2020-05-02 08:48:48 +02:00
eq.c Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2019-08-28 11:48:56 -07:00
eswitch.c net/mlx5e: Fix kernel crash when setting vf VLANID on a VF dev 2020-08-05 09:59:47 +02:00
eswitch.h net/mlx5e: Modify uplink state on interface up/down 2020-08-05 09:59:47 +02:00
eswitch_offloads.c net/mlx5e: Enable adding peer miss rules only if merged eswitch is supported 2020-09-26 18:03:14 +02:00
eswitch_offloads_termtbl.c net/mlx5e: Use correct enum to determine uplink port 2019-11-06 14:03:55 -08:00
events.c net/mlx5: Fix memory leak in mlx5_events_init 2020-06-03 08:21:04 +02:00
fs_cmd.c net/mlx5: Fix NULL pointer dereference in extended destination 2019-10-29 16:27:19 -07:00
fs_cmd.h net/mlx5: Add direct rule fs_cmd implementation 2019-09-03 12:54:23 -07:00
fs_core.c net/mlx5: Fix deletion of duplicate rules 2020-11-18 19:20:26 +01:00
fs_core.h net/mlx5: Fix auto group size calculation 2019-11-20 12:33:06 -08:00
fs_counters.c Merge branch 'odp_fixes' into rdma.git for-next 2019-08-21 14:10:36 -03:00
fw.c net/mlx5: Deprecate usage of generic TLS HW capability bit 2020-02-11 04:35:51 -08:00
health.c net/mlx5: Fix fatal error handling during device load 2020-06-17 16:40:32 +02:00
lag.c
lag.h
lag_mp.c mlx5: Add missing init_net check in FIB notifier 2019-09-02 11:44:14 -07:00
lag_mp.h
main.c net/mlx5: drain health workqueue in case of driver load error 2020-06-17 16:40:32 +02:00
mcg.c
mlx5_core.h Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2019-09-02 00:16:05 -07:00
mr.c RDMA/mlx5: Add missing synchronize_srcu() for MW cases 2019-10-04 15:54:22 -03:00
pagealloc.c
pci_irq.c net/mlx5: Fix request_irqs error flow 2020-10-14 10:33:04 +02:00
pd.c
port.c net/mlx5: Fix eeprom support for SFP module 2020-07-16 08:16:40 +02:00
qp.c net/mlx5: Use debug message instead of warn 2019-08-13 12:58:06 +03:00
rdma.c net/mlx5: Avoid disabling RoCE when uninitialized 2019-09-01 23:44:42 -07:00
rdma.h
rl.c mlx5: Fix formats with line continuation whitespace 2019-08-02 15:04:54 -04:00
sriov.c
transobj.c
uar.c
vport.c net/mlx5e: Tx, Soften inline mode VLAN dependencies 2019-08-01 12:33:31 -07:00
wq.c net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY 2020-02-28 17:22:28 +01:00
wq.h net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY 2020-02-28 17:22:28 +01:00