[ofw] [Patch][MLX4_BUS] Wrong MSS length calulation within LSO flow

Alex Naslednikov xalex at mellanox.co.il
Sun Mar 13 01:16:08 PST 2011


Done at 3106

From: Alex Naslednikov
Sent: Thursday, March 10, 2011 3:36 PM
To: ofw at lists.openfabrics.org
Subject: [ofw][Patch][MLX4_BUS] Wrong MSS length calulation within LSO flow

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/20110313/ea456f73/attachment.html>


More information about the ofw mailing list