]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Utilize macro to calculate SQ spare size
authorYuval Shaia <yuval.shaia@oracle.com>
Tue, 11 Dec 2018 08:36:47 +0000 (10:36 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 18 Dec 2018 21:24:34 +0000 (14:24 -0700)
commit14f746a4b7c02ae29da7815a107fdea819dd1640
treee639558f7af77c1bd6ec892b703754acb1ff94b5
parent8b3b2c2d98e3a6ebf0596bdd89294eb28b824f5d
IB/mlx4: Utilize macro to calculate SQ spare size

The macro MLX4_IB_SQ_HEADROOM calculates the spare room needed to be
left. Use it instead of hard-coding the HW prefetch size.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/qp.c