linux-stable/drivers/net/ethernet/mellanox/mlx5/core
Rahul Rameshbabu b8ac3415e2 net/mlx5e: Do not produce metadata freelist entries in Tx port ts WQE xmit
[ Upstream commit 86b0ca5b11 ]

Free Tx port timestamping metadata entries in the NAPI poll context and
consume metadata enties in the WQE xmit path. Do not free a Tx port
timestamping metadata entry in the WQE xmit path even in the error path to
avoid a race between two metadata entry producers.

Fixes: 3178308ad4 ("net/mlx5e: Make tx_port_ts logic resilient to out-of-order CQEs")
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240409190820.227554-10-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:23:33 +02:00
..
diag Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-12-21 22:17:23 +01:00
en net/mlx5e: Do not produce metadata freelist entries in Tx port ts WQE xmit 2024-04-17 11:23:33 +02:00
en_accel net/mlx5e: Fix MACsec state loss upon state update in offload path 2024-03-01 23:02:26 -08:00
esw Revert "net/mlx5e: Check the number of elements before walk TC rhashtable" 2024-03-01 23:02:26 -08:00
fpga
ipoib net/mlx5e: Use the correct lag ports number when creating TISes 2024-01-24 00:15:32 -08:00
lag net/mlx5: Use PTR_ERR_OR_ZERO() to simplify code 2023-10-14 10:16:31 -07:00
lib net/mlx5: Use mlx5 device constant for selecting CQ period mode for ASO 2024-01-24 00:15:37 -08:00
sf net/mlx5: Register devlink first under devlink lock 2024-04-17 11:23:32 +02:00
steering net/mlx5: DR, Can't go to uplink vport on RX rule 2024-01-24 00:15:36 -08:00
Kconfig mlx5: Implement SyncE support using DPLL infrastructure 2023-09-17 11:50:20 +01:00
Makefile Revert "mlx5 updates 2023-12-20" 2024-01-07 17:16:11 -08:00
alloc.c
cmd.c net/mlx5: Fix a WARN upon a callback command failure 2024-01-24 00:15:35 -08:00
cq.c
debugfs.c
dev.c Revert "mlx5 updates 2023-12-20" 2024-01-07 17:16:11 -08:00
devlink.c net/mlx5: Check capability for fw_reset 2024-03-01 23:02:26 -08:00
devlink.h
dpll.c dpll: move all dpll<>netdev helpers to dpll code 2024-03-05 18:36:42 -08:00
ecpf.c Revert "mlx5 updates 2023-12-20" 2024-01-07 17:16:11 -08:00
ecpf.h
en.h net/mlx5e: Use the correct lag ports number when creating TISes 2024-01-24 00:15:32 -08:00
en_arfs.c net/mlx5e: fix a double-free in arfs_create_groups 2024-01-24 00:15:38 -08:00
en_common.c net/mlx5e: Use the correct lag ports number when creating TISes 2024-01-24 00:15:32 -08:00
en_dcbnl.c
en_dim.c
en_ethtool.c net/mlx5e: RSS, Block changing channels number when RXFH is configured 2024-04-17 11:23:33 +02:00
en_fs.c net/mlx5e: Use PTR_ERR_OR_ZERO() to simplify code 2023-10-14 10:16:32 -07:00
en_fs_ethtool.c
en_main.c net/mlx5e: Fix mlx5e_priv_init() cleanup flow 2024-04-17 11:23:33 +02:00
en_rep.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-12-21 22:17:23 +01:00
en_rep.h
en_rx.c mlx5-updates-2023-12-13 2023-12-15 10:00:02 +00:00
en_selftest.c
en_stats.c Revert "mlx5 updates 2023-12-20" 2024-01-07 17:16:11 -08:00
en_stats.h net/mlx5e: Add local loopback counter to vport rep stats 2023-11-15 11:34:31 -08:00
en_tc.c net/mlx5e: Fix peer flow lists handling 2024-01-24 00:15:34 -08:00
en_tc.h net/mlx5e: Some cleanup in mlx5e_tc_stats_matchall() 2023-11-15 11:34:29 -08:00
en_tx.c net/mlx5e: Do not produce metadata freelist entries in Tx port ts WQE xmit 2024-04-17 11:23:33 +02:00
en_txrx.c
eq.c net/mlx5: Free used cpus mask when an IRQ is released 2023-11-15 22:34:09 -08:00
eswitch.c Revert "mlx5 updates 2023-12-20" 2024-01-07 17:16:11 -08:00
eswitch.h RDMA v6.8 merge window 2024-01-12 13:52:21 -08:00
eswitch_offloads.c net/mlx5: E-switch, Change flow rule destination checking 2024-03-01 23:02:26 -08:00
eswitch_offloads_termtbl.c net/mlx5: Refactor mlx5_flow_destination->rep pointer to vport num 2023-12-13 17:22:18 -08:00
events.c net/mlx5: Parallelize vhca event handling 2023-10-14 10:16:29 -07:00
fs_cmd.c net/mlx5: Bridge, fix multicast packets sent to uplink 2024-01-24 00:15:35 -08:00
fs_cmd.h net/mlx5: fs, Command to control TX flow table root 2023-12-13 18:03:30 -08:00
fs_core.c net/mlx5: Correctly compare pkt reformat ids 2024-04-17 11:23:33 +02:00
fs_core.h net/mlx5: Annotate struct mlx5_flow_handle with __counted_by 2023-11-15 11:34:30 -08:00
fs_counters.c net/mlx5: Annotate struct mlx5_fc_bulk with __counted_by 2023-11-15 11:34:30 -08:00
fs_ft_pool.c
fs_ft_pool.h
fw.c
fw_reset.c net/mlx5: Check capability for fw_reset 2024-03-01 23:02:26 -08:00
fw_reset.h
health.c net/mlx5: Fix fw reporter diagnose output 2024-03-01 23:02:26 -08:00
hwmon.c
hwmon.h
irq_affinity.c net/mlx5: Free used cpus mask when an IRQ is released 2023-11-15 22:34:09 -08:00
main.c net/mlx5: Register devlink first under devlink lock 2024-04-17 11:23:32 +02:00
mcg.c
mlx5_core.h net/mlx5: Expose Management PCIe Index Register (MPIR) 2023-12-13 18:03:30 -08:00
mlx5_irq.h
mr.c
pagealloc.c
pci_irq.c net/mlx5: offset comp irq index in name by one 2024-04-17 11:23:32 +02:00
pci_irq.h net/mlx5: Increase size of irq name buffer 2023-11-15 22:34:31 -08:00
pd.c
port.c net/mlx5: Expose Management PCIe Index Register (MPIR) 2023-12-13 18:03:30 -08:00
qos.c
qos.h
rdma.c
rdma.h
rl.c
sriov.c
transobj.c
uar.c
vport.c net/mlx5: Fix query of sd_group field 2024-01-24 00:15:33 -08:00
wq.c
wq.h