]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sif: qp: Increase inline data for TSO QPs to accomodate larger L3/L4-headers
authorHans Westgaard Ry <hans.westgaard.ry@oracle.com>
Thu, 30 Jun 2016 09:25:34 +0000 (11:25 +0200)
committerKnut Omang <knut.omang@oracle.com>
Sun, 3 Jul 2016 14:44:14 +0000 (16:44 +0200)
Signed-off-by: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
Tested-by: Knut Omang <knut.omang@oracle.com>
drivers/infiniband/hw/sif/sif_qp.c

index 44b0db1cc257cd7c4c668c71c271487a21a40953..999b285c3c497b319c5d3fad73205a7791f762b4 100644 (file)
@@ -235,10 +235,15 @@ struct sif_qp *create_qp(struct sif_dev *sdev,
        /*
         * We add a sge (with the stencil) when sending with TSO. The stencil is stored at
         * the beginning of the inline-area. TSO implies checksumming which again has
-        * a requirement that no inline can be used. It is therefore necessary to check that we have at least
-        * 64 bytes of inline-buffering.
+        * a requirement that no inline can be used. 
+        * To be able to accomodate as large L3/L4-headers as possible we allocate 192
+        * bytes for inlining;
+        * entry size 512 bytes
+        * 16*16 bytes sge
+        * request 64 bytes
+        * inline_bufer = 512 - 256 -64 = 192
         */
-       min_tso_inline = 64;
+       min_tso_inline = 192;
        if (flags & IB_QP_CREATE_IPOIB_UD_LSO) {
                if (init_attr->cap.max_inline_data < min_tso_inline) {
                        sif_log(sdev, SIF_INFO,