[ofw] [patch][bus] Remove the limitation of 60 bytes on LSO packets

Alex Naslednikov xalex at mellanox.co.il
Wed Feb 2 00:47:09 PST 2011


Applied at 7236

From: Alex Naslednikov
Sent: Monday, January 31, 2011 3:31 PM
To: ofw at lists.openfabrics.org
Subject: [ofw][patch][bus] Remove the limitation of 60 bytes on LSO packets

The mentioned limitation is no longer needed.
Signed off by: Alexander Naslednikov (xalex at mellanox.co.il)
Index: hw/mlx4/kernel/bus/ib/qp.c
===================================================================
--- hw/mlx4/kernel/bus/ib/qp.c               (revision 3080)
+++ hw/mlx4/kernel/bus/ib/qp.c            (working copy)
@@ -1469,12 +1469,6 @@
  {
                unsigned halign = ALIGN(sizeof *wqe + wr->dgrm.ud.hlen, 16);
                void * ds;
-              /*
-              * This is a temporary limitation and will be removed in
-              a forthcoming FW release:
-              */
-              if (unlikely(halign > 64))
-                              return -EINVAL;

                if (unlikely(!(qp->flags & MLX4_IB_QP_LSO) &&
                                wr->num_ds > qp->sq.max_gs - (halign >> 4)))

Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20110202/46e2ec02/attachment.html>


More information about the ofw mailing list