[ofw] [Patch][MLX4_BUS] Wrong MSS length calulation within LSO flow
Alex Naslednikov
xalex at mellanox.co.il
Thu Mar 10 05:36:29 PST 2011
LSO header length should not be subtracted from MSS
Signed-off by: Alexander Naslednikov (xalex at mellanox.co.il)
Index: B:/users/xalex/MLNX_VPI_trunk/hw/mlx4/kernel/bus/ib/qp.c
===================================================================
--- B:/users/xalex/MLNX_VPI_trunk/hw/mlx4/kernel/bus/ib/qp.c (revision 7502)
+++ B:/users/xalex/MLNX_VPI_trunk/hw/mlx4/kernel/bus/ib/qp.c (revision 7503)
@@ -1899,7 +1899,7 @@
/* make sure LSO header is written before overwriting stamping */
wmb();
- wqe->mss_hdr_size = cpu_to_be32((wr->dgrm.ud.mss - wr->dgrm.ud.hlen) << 16 |
+ wqe->mss_hdr_size = cpu_to_be32((wr->dgrm.ud.mss) << 16 |
wr->dgrm.ud.hlen);
return 0;
Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20110310/ef63923b/attachment.html>
More information about the ofw
mailing list