1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/mellanox/mlx5/core
Maxim Mikityanskiy 84c8a87402 net/mlx5e: Fix division by 0 in mlx5e_select_queue for representors
Commit 846d6da1fc ("net/mlx5e: Fix division by 0 in
mlx5e_select_queue") makes mlx5e_build_nic_params assign a non-zero
initial value to priv->num_tc_x_num_ch, so that mlx5e_select_queue
doesn't fail with division by 0 if called before the first activation of
channels. However, the initialization flow of representors doesn't call
mlx5e_build_nic_params, so this bug can still happen with representors.

This commit fixes the bug by adding the missing assignment to
mlx5e_build_rep_params.

Fixes: 846d6da1fc ("net/mlx5e: Fix division by 0 in mlx5e_select_queue")
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2021-10-12 13:52:03 -07:00
..
accel net/mlx5: IPsec: make spdxcheck.py happy 2020-09-16 14:34:32 +02:00
diag net/mlx5: FWTrace, cancel work on alloc pd error flow 2021-09-07 14:16:52 -07:00
en net/mlx5: Fix cleanup of bridge delayed work 2021-10-12 13:51:45 -07:00
en_accel net/mlx5: Embed mlx5_ttc_table 2021-08-02 19:26:27 -07:00
esw net/mlx5: E-Switch, Fix double allocation of acl flow counter 2021-09-30 14:07:55 -07:00
fpga Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-13 06:41:22 -07:00
ipoib net/mlx5e: Keep the value for maximum number of channels in-sync 2021-09-30 14:07:54 -07:00
lib net/mlx5: Avoid generating event after PPS out in Real time mode 2021-09-30 14:07:56 -07:00
sf net/mlx5: SF, use recent sysfs api 2021-08-11 11:14:32 -07:00
steering Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-31 09:06:04 -07:00
alloc.c net/mlx5: Use dma device access helper 2020-09-30 21:26:30 -07:00
cmd.c net/mlx5: Fix variable type to match 64bit 2021-08-11 11:14:33 -07:00
cq.c net/mlx5e: Fix memory leak in mlx5_core_destroy_cq() error path 2021-10-12 13:51:52 -07:00
debugfs.c net/mlx5: cmd: Fix memset with byte count warning 2020-05-29 21:20:21 -07:00
dev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-31 09:06:04 -07:00
devlink.c net/mlx5: Fix rdma aux device on devlink reload 2021-09-07 14:16:46 -07:00
devlink.h devlink: Set device as early as possible 2021-08-09 10:21:40 +01:00
ecpf.c net/mlx5: Enable host PF HCA after eswitch is initialized 2020-11-26 18:45:03 -08:00
ecpf.h net/mlx5: Enable host PF HCA after eswitch is initialized 2020-11-26 18:45:03 -08:00
en.h net/mlx5e: Improve MQPRIO resiliency 2021-09-30 14:07:55 -07:00
en_arfs.c net/mlx5: Embed mlx5_ttc_table 2021-08-02 19:26:27 -07:00
en_common.c net/mlx5: Fix typo in comments 2021-08-11 11:14:30 -07:00
en_dcbnl.c net/mlx5e: Cleanup safe switch channels API by passing params 2021-04-16 11:48:20 -07:00
en_dim.c linux/dim: Move implementation to .c files 2019-06-25 13:46:39 -07:00
en_ethtool.c net/mlx5e: Mutually exclude setting of TX-port-TS and MQPRIO in channel mode 2021-09-30 14:07:57 -07:00
en_fs.c net/mlx5: Fix inner TTC table creation 2021-08-11 11:14:30 -07:00
en_fs_ethtool.c net/mlx5e: Support flow classification into RSS contexts 2021-08-16 16:17:28 -07:00
en_main.c net/mlx5e: Mutually exclude RX-FCS and RX-port-timestamp 2021-10-12 13:51:59 -07:00
en_rep.c net/mlx5e: Fix division by 0 in mlx5e_select_queue for representors 2021-10-12 13:52:03 -07:00
en_rep.h net/mlx5e: Refactor ct to use post action infrastructure 2021-08-19 21:50:37 -07:00
en_rx.c net/mlx5e: IPSEC RX, enable checksum complete 2021-09-30 14:07:54 -07:00
en_selftest.c net/mlx5e: RX, Add a prefetch command for small L1_CACHE_BYTES 2020-08-26 15:55:53 -07:00
en_stats.c net/mlx5e: Fix the presented RQ index in PTP stats 2021-09-30 14:07:57 -07:00
en_stats.h mlx5: implement ethtool standard stats 2021-04-16 16:59:47 -07:00
en_tc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-31 09:06:04 -07:00
en_tc.h net/mlx5e: Move sample attribute to flow attribute 2021-08-19 21:50:36 -07:00
en_tx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-06-18 19:47:02 -07:00
en_txrx.c net/mlx5e: kTLS, Add resiliency to RX resync failures 2021-04-16 11:48:08 -07:00
eq.c net/mlx5: Synchronize correct IRQ when destroying CQ 2021-08-09 20:57:00 -07:00
eswitch.c net/mlx5: E-switch, Move QoS related code to dedicated file 2021-08-19 21:50:39 -07:00
eswitch.h net/mlx5: E-switch, Allow to add vports to rate groups 2021-08-19 21:50:40 -07:00
eswitch_offloads.c net/mlx5e: TC, Support sample offload action for tunneled traffic 2021-08-19 21:50:38 -07:00
eswitch_offloads_termtbl.c net/mlx5: Set term table as an unmanaged flow table 2021-05-18 23:01:53 -07:00
events.c net/mlx5: Fix typo in comments 2021-08-11 11:14:30 -07:00
fs_cmd.c net/mlx5: E-Switch, add logic to enable shared FDB 2021-08-05 13:50:44 -07:00
fs_cmd.h net/mlx5: Added new parameters to reformat context 2021-06-09 18:36:07 -07:00
fs_core.c net/mlx5: Fix potential sleeping in atomic context 2021-09-07 14:16:55 -07:00
fs_core.h net/mlx5: E-Switch, add logic to enable shared FDB 2021-08-05 13:50:44 -07:00
fs_counters.c net/mlx5: Allocate FC bulk structs with kvzalloc() instead of kzalloc() 2021-04-16 11:48:22 -07:00
fs_ft_pool.c net/mlx5: check for allocation failure in mlx5_ft_pool_init() 2021-06-03 13:10:17 -07:00
fs_ft_pool.h net/mlx5: Move chains ft pool to be used by all firmware steering 2021-05-27 11:54:38 -07:00
fw.c net/mlx5: mlx5_ifc support for header insert/remove 2021-06-09 18:36:06 -07:00
fw_reset.c net/mlx5: Check firmware sync reset requested is set before trying to abort it 2021-06-01 18:30:20 -07:00
fw_reset.h net/mlx5: Add devlink param enable_remote_dev_reset support 2020-10-09 12:06:53 -07:00
health.c net/mlx5: Delete impossible dev->state checks 2021-08-11 11:14:30 -07:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
lag.c net/mlx5: Lag, don't update lag if lag isn't supported 2021-09-07 14:16:49 -07:00
lag.h net/mlx5: Lag, Create shared FDB when in switchdev mode 2021-08-05 13:50:52 -07:00
lag_mp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-31 09:06:04 -07:00
lag_mp.h net/mlx5: Lag, fix multipath lag activation 2021-08-26 15:15:41 -07:00
main.c net/mellanox: switch from 'pci_' to 'dma_' API 2021-08-23 12:02:28 +01:00
Makefile net/mlx5: E-switch, Move QoS related code to dedicated file 2021-08-19 21:50:39 -07:00
mcg.c net/mlx5: Update mcg.c new cmd interface 2020-04-23 21:42:11 +03:00
mlx5_core.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-13 06:41:22 -07:00
mlx5_irq.h net/mlx5: Round-Robin EQs over IRQs 2021-06-14 20:58:00 -07:00
mr.c net/mlx5: Reset mkey index on creation 2021-06-16 15:36:49 -07:00
pagealloc.c net/mlx5: Use unsigned int for free_count 2021-04-02 16:13:04 -07:00
pci_irq.c net/mlx5: Fix setting number of EQs of SFs 2021-09-30 14:07:56 -07:00
pd.c net/mlx5: Update pd.c new cmd interface 2020-04-23 21:42:13 +03:00
port.c net/mlx5: Add support for DSFP module EEPROM dumps 2021-04-11 16:34:56 -07:00
qos.c net/mlx5e: Support HTB offload 2021-01-22 20:41:29 -08:00
qos.h net/mlx5e: Support HTB offload 2021-01-22 20:41:29 -08:00
rdma.c net/mlx5: Consider RoCE cap before init RDMA resources 2021-06-09 17:20:04 -07:00
rdma.h
rl.c net/mlx5: Pair mutex_destory with mutex_init for rate limit table 2021-04-02 16:13:06 -07:00
sriov.c net/mlx5: Introduce API for request and release IRQs 2021-06-14 20:57:57 -07:00
transobj.c net/mlx5e: Fix page reclaim for dead peer hairpin 2021-06-09 17:20:03 -07:00
uar.c net/mlx5: Update uar.c new cmd interface 2020-04-23 21:42:14 +03:00
vport.c net/mlx5: E-Switch, Allow setting GUID for host PF vport 2021-06-16 15:36:40 -07:00
wq.c net/mlx5: Use order-0 allocations for EQs 2021-03-12 13:07:46 -08:00
wq.h net/mlx5e: Add helper to get the RQ WQE counter 2020-07-02 21:05:18 -07:00