]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/rds/ib_send.c
RDS: Remove unsignaled_bytes sysctl
[net-next-2.6.git] / net / rds / ib_send.c
index 06c1d7e032d23e6b05c82fabafe12c92f58cd24a..48724b71f26cc71700f90ae3d4c33b1d59e5d60a 100644 (file)
@@ -518,7 +518,6 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
                }
 
                ic->i_unsignaled_wrs = rds_ib_sysctl_max_unsig_wrs;
-               ic->i_unsignaled_bytes = rds_ib_sysctl_max_unsig_bytes;
                rds_message_addref(rm);
                ic->i_rm = rm;
 
@@ -617,12 +616,6 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
                        send->s_wr.send_flags |= IB_SEND_SIGNALED | IB_SEND_SOLICITED;
                }
 
-               ic->i_unsignaled_bytes -= len;
-               if (ic->i_unsignaled_bytes <= 0) {
-                       ic->i_unsignaled_bytes = rds_ib_sysctl_max_unsig_bytes;
-                       send->s_wr.send_flags |= IB_SEND_SIGNALED | IB_SEND_SOLICITED;
-               }
-
                /*
                 * Always signal the last one if we're stopping due to flow control.
                 */