summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2018-09-03 18:06:24 +0300
committerDavid S. Miller <davem@davemloft.net>2018-09-04 12:17:33 -0700
commit639505d4397b8c654a8e2616f9cb70ece40c83f9 (patch)
tree47f3bb3050bd9f0e80850236e54b6994709aa226 /net
parentfc3e3bf55f48e5b18481075b0591ca938c9dba78 (diff)
downloadlinux-639505d4397b8c654a8e2616f9cb70ece40c83f9.tar.bz2
net/mlx5: Fix SQ offset in QPs with small RQ
Correct the formula for calculating the RQ page remainder, which should be in byte granularity. The result will be non-zero only for RQs smaller than PAGE_SIZE, as an RQ size is a power of 2. Divide this by the SQ stride (MLX5_SEND_WQE_BB) to get the SQ offset in strides granularity. Fixes: d7037ad73daa ("net/mlx5: Fix QP fragmented buffer allocation") Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions