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

Alex Naslednikov xalex at mellanox.co.il
Mon Jan 31 05:31:18 PST 2011


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/20110131/4dbff51a/attachment.html>


More information about the ofw mailing list