summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
diff options
context:
space:
mode:
authorTariq Toukan2018-07-08 11:14:59 +0200
committerSaeed Mahameed2018-07-19 03:16:58 +0200
commitd7037ad73daa9598b8caa7d5fdf41e8ceee6ef73 (patch)
tree45a88454360fce7a902b9e9e53ea638ab233ef09 /drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
parentnet/mlx5: Fix 'DON'T_TRAP' functionality (diff)
downloadkernel-qcow2-linux-d7037ad73daa9598b8caa7d5fdf41e8ceee6ef73.tar.gz
kernel-qcow2-linux-d7037ad73daa9598b8caa7d5fdf41e8ceee6ef73.tar.xz
kernel-qcow2-linux-d7037ad73daa9598b8caa7d5fdf41e8ceee6ef73.zip
net/mlx5: Fix QP fragmented buffer allocation
Fix bad alignment of SQ buffer in fragmented QP allocation. It should start directly after RQ buffer ends. Take special care of the end case where the RQ buffer does not occupy a whole page. RQ size is a power of two, so would be the case only for small RQ sizes (RQ size < PAGE_SIZE). Fix wrong assignments for sqb->size (mistakenly assigned RQ size), and for npages value of RQ and SQ. Fixes: 3a2f70331226 ("net/mlx5: Use order-0 allocations for all WQ types") Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_tc.c')
0 files changed, 0 insertions, 0 deletions