[SRP] Properly size SRB extension.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 3 Oct 2006 00:07:27 +0000 (00:07 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 3 Oct 2006 00:07:27 +0000 (00:07 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@512 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/srp/kernel/srp_connection.c
ulp/srp/kernel/srp_hba.c

index 5f30fa6..4541297 100644 (file)
@@ -371,7 +371,7 @@ __srp_cm_dreq_cb(
                        {\r
                                p_hba->max_srb_ext_sz =\r
                                        sizeof( srp_send_descriptor_t ) -\r
-                                       SRP_MIN_IU_SIZE +\r
+                                       SRP_MAX_IU_SIZE +\r
                                        p_srp_session->connection.init_to_targ_iu_sz;\r
                        }\r
 \r
index 5de880b..7a8f73a 100644 (file)
@@ -773,7 +773,7 @@ __srp_connect_sessions(
                                {\r
                                        p_hba->max_srb_ext_sz =\r
                                                sizeof( srp_send_descriptor_t ) -\r
-                                               SRP_MIN_IU_SIZE +\r
+                                               SRP_MAX_IU_SIZE +\r
                                                p_session->connection.init_to_targ_iu_sz;\r
                                }\r
 \r