]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Get rid of max_inline_data calculation
authorRoland Dreier <rolandd@cisco.com>
Mon, 18 Jun 2007 15:13:53 +0000 (08:13 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 18 Jun 2007 15:13:53 +0000 (08:13 -0700)
commitf1021275aa9918b8cb5f19f802ddf572cd4f3957
treee16c04dc92d72f21e82287fb73b22907f9fcdd35
parent7abe919caacbdbfc3a34e9b0f649da8637b3b649
IB/mlx4: Get rid of max_inline_data calculation

The calculation of max_inline_data in set_kernel_sq_size() is bogus,
since it doesn't take into account the fact that inline segments may
not cross a 64-byte boundary, and hence multiple inline segments will
probably need to be used to post large inline sends.

We don't support inline sends for kernel QPs anyway, so there's no
point in doing this calculation anyway, since the field is just zeroed
out a little later.  So just delete the bogus calculation.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c