linux-stable/drivers/net/ethernet/mellanox/mlx5/core
Ben Ben-Ishay 8c8cf03822 net/mlx5e: SHAMPO, Fix constant expression result
mlx5e_build_shampo_hd_umr uses counters i and index incorrectly
as unsigned, thus the err state err_unmap could stuck in endless loop.
Change i to int to solve the first issue.
Reduce index check to solve the second issue, the caller function
validates that index could not rotate.

Fixes: 64509b0525 ("net/mlx5e: Add data path for SHAMPO feature")
Signed-off-by: Ben Ben-Ishay <benishay@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2021-11-30 22:35:06 -08:00
..
accel
diag Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into net-next 2021-10-27 21:33:28 -07:00
en net/mlx5e: Sync TIR params updates against concurrent create/modify 2021-11-30 22:35:03 -08:00
en_accel net/mlx5e: Sync TIR params updates against concurrent create/modify 2021-11-30 22:35:03 -08:00
esw net/mlx5: E-Switch, Check group pointer before reading bw_share value 2021-11-30 22:35:04 -08:00
fpga RDMA/mlx5: Replace struct mlx5_core_mkey by u32 key 2021-10-19 14:34:12 +03:00
ipoib RDMA v5.16 merge window pull request 2021-11-03 08:05:59 -07:00
lag net/mlx5: Lag, Fix recreation of VF LAG 2021-11-30 22:35:03 -08:00
lib net/mlx5: Fix use after free in mlx5_health_wait_pci_up 2021-11-30 22:35:05 -08:00
sf net/mlx5: SF_DEV Add SF device trace points 2021-10-25 13:51:21 -07:00
steering net/mlx5: DR, Fix check for unsupported fields in match param 2021-11-16 12:20:20 -08:00
alloc.c
cmd.c net/mlx5: Move MODIFY_RQT command to ignore list in internal error state 2021-11-30 22:35:03 -08:00
cq.c net/mlx5e: nullify cq->dbg pointer in mlx5_debug_cq_remove() 2021-11-16 12:20:19 -08:00
debugfs.c net/mlx5e: nullify cq->dbg pointer in mlx5_debug_cq_remove() 2021-11-16 12:20:19 -08:00
dev.c net/mlx5: Use system_image_guid to determine bonding 2021-10-15 17:37:47 -07:00
devlink.c net/mlx5: remove the recent devlink params 2021-10-26 10:18:32 -07:00
devlink.h net/mlx5: remove the recent devlink params 2021-10-26 10:18:32 -07:00
ecpf.c
ecpf.h
en.h Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into net-next 2021-10-27 21:33:28 -07:00
en_arfs.c net/mlx5: Embed mlx5_ttc_table 2021-08-02 19:26:27 -07:00
en_common.c RDMA/mlx5: Replace struct mlx5_core_mkey by u32 key 2021-10-19 14:34:12 +03:00
en_dcbnl.c
en_dim.c
en_ethtool.c net/mlx5e: Prevent HW-GRO and CQE-COMPRESS features operate together 2021-10-26 19:30:42 -07:00
en_fs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-22 11:41:16 +01:00
en_fs_ethtool.c net/mlx5e: Rename TIR lro functions to TIR packet merge functions 2021-10-26 19:30:39 -07:00
en_main.c Linux 5.15 2021-11-01 14:49:20 -03:00
en_rep.c net/mlx5e: Fix missing IPsec statistics on uplink representor 2021-11-30 22:35:02 -08:00
en_rep.h net/mlx5: E-Switch, Add ovs internal port mapping to metadata support 2021-10-29 13:53:29 -07:00
en_rx.c net/mlx5e: SHAMPO, Fix constant expression result 2021-11-30 22:35:06 -08:00
en_selftest.c net/mlx5e: loopback test is not supported in switchdev mode 2021-09-24 11:46:55 -07:00
en_stats.c net/mlx5e: Add HW_GRO statistics 2021-10-26 19:30:41 -07:00
en_stats.h net/mlx5e: Add HW_GRO statistics 2021-10-26 19:30:41 -07:00
en_tc.c net/mlx5e: CT, Fix multiple allocations and memleak of mod acts 2021-11-16 12:20:22 -08:00
en_tc.h net/mlx5e: Offload tc rules that redirect to ovs internal port 2021-10-29 13:53:30 -07:00
en_tx.c net/mlx5e: IPsec: Refactor checksum code in tx data path 2021-10-29 13:53:28 -07:00
en_txrx.c
eq.c net/mlx5: remove the recent devlink params 2021-10-26 10:18:32 -07:00
eswitch.c net/mlx5: E-Switch, rebuild lag only when needed 2021-11-16 12:20:21 -08:00
eswitch.h net/mlx5e: Add indirect tc offload of ovs internal port 2021-10-29 13:53:30 -07:00
eswitch_offloads.c net/mlx5: E-Switch, Use indirect table only if all destinations support it 2021-11-30 22:35:05 -08:00
eswitch_offloads_termtbl.c net/mlx5e: Term table handling of internal port rules 2021-10-29 13:53:31 -07:00
events.c net/mlx5: Fix typo in comments 2021-08-11 11:14:30 -07:00
fs_cmd.c net/mlx5: Introduce new uplink destination type 2021-10-18 20:18:08 -07:00
fs_cmd.h net/mlx5: Add support to create match definer 2021-10-18 20:18:07 -07:00
fs_core.c Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into net-next 2021-10-27 21:33:28 -07:00
fs_core.h net/mlx5: Add support to create match definer 2021-10-18 20:18:07 -07:00
fs_counters.c net/mlx5: Fix flow counters SF bulk query len 2021-11-16 12:20:22 -08:00
fs_ft_pool.c
fs_ft_pool.h
fw.c net/mlx5: Add SHAMPO caps, HW bits and enumerations 2021-10-26 19:30:39 -07:00
fw_reset.c mlx5: prevent 64bit divide 2021-10-18 12:03:04 -07:00
fw_reset.h
health.c net/mlx5: Fix access to a non-supported register 2021-11-30 22:35:06 -08:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
main.c net/mlx5: Fix access to a non-supported register 2021-11-30 22:35:06 -08:00
Makefile net/mlx5: E-Switch, Add ovs internal port mapping to metadata support 2021-10-29 13:53:29 -07:00
mcg.c
mlx5_core.h net/mlx5: Print health buffer by log level 2021-10-25 13:51:19 -07:00
mlx5_irq.h net/mlx5: Shift control IRQ to the last index 2021-10-04 18:10:57 -07:00
mr.c RDMA/mlx5: Replace struct mlx5_core_mkey by u32 key 2021-10-19 14:34:12 +03:00
pagealloc.c net/mlx5: Read timeout values from DTOR 2021-10-15 17:37:43 -07:00
pci_irq.c net/mlx5: Enable single IRQ for PCI Function 2021-10-04 18:10:57 -07:00
pd.c
port.c
qos.c
qos.h
rdma.c
rdma.h
rl.c
sriov.c
transobj.c
uar.c IB/mlx5: Enable UAR to have DevX UID 2021-09-28 18:31:21 +03:00
vport.c net/mlx5: Check return status first when querying system_image_guid 2021-10-15 17:37:46 -07:00
wq.c
wq.h