]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Remove limitation on LSO header size
authorEli Cohen <eli@mellanox.co.il>
Thu, 12 Nov 2009 19:19:44 +0000 (11:19 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 12 Nov 2009 19:19:44 +0000 (11:19 -0800)
commit2e6427d6659398d7198de1bd40fd3d0b9b0abbb1
tree9986edf24a8d52fdfc5f51b2cb50f56c4eeb0c6c
parentcaac997b2cc5ca767f49d4afe30fccb1a9b7720e
IB/mlx4: Remove limitation on LSO header size

Current code has a limitation: an LSO header is not allowed to cross a
64 byte boundary.  This patch removes this limitation by setting the
WQE RR for large headers thus allowing LSO headers of any size.  The
extra buffer reserved for MLX4_IB_QP_LSO QPs has been doubled, from 64
to 128 bytes, assuming this is reasonable upper limit for header
length.  Also, this patch will cause IB_DEVICE_UD_TSO to be set only
for HCA FW versions that set MLX4_DEV_CAP_FLAG_BLH; e.g. FW version
2.6.000 and higher.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/qp.c
drivers/net/mlx4/fw.c
include/linux/mlx4/device.h