summaryrefslogtreecommitdiffstats
path: root/net/rds/connection.c
diff options
context:
space:
mode:
authorSowmini Varadhan2017-06-15 20:28:53 +0200
committerDavid S. Miller2017-06-16 18:45:14 +0200
commit41500c3e2a19ffcf40a7158fce1774de08e26ba2 (patch)
tree723682c0d034d68674f943d70e83632a28c71ad7 /net/rds/connection.c
parentMerge branch 'dsa-loop-Driver-updates' (diff)
downloadkernel-qcow2-linux-41500c3e2a19ffcf40a7158fce1774de08e26ba2.tar.gz
kernel-qcow2-linux-41500c3e2a19ffcf40a7158fce1774de08e26ba2.tar.xz
kernel-qcow2-linux-41500c3e2a19ffcf40a7158fce1774de08e26ba2.zip
rds: tcp: remove cp_outgoing
After commit 1a0e100fb2c9 ("RDS: TCP: Force every connection to be initiated by numerically smaller IP address") we no longer need the logic associated with cp_outgoing, so clean up usage of this field. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Tested-by: Imanti Mendez <imanti.mendez@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/connection.c')
-rw-r--r--net/rds/connection.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/rds/connection.c b/net/rds/connection.c
index 6a5ebdea7d2e..382443b060cb 100644
--- a/net/rds/connection.c
+++ b/net/rds/connection.c
@@ -124,11 +124,6 @@ static void __rds_conn_path_init(struct rds_connection *conn,
cp->cp_conn = conn;
atomic_set(&cp->cp_state, RDS_CONN_DOWN);
cp->cp_send_gen = 0;
- /* cp_outgoing is per-path. So we can only set it here
- * for the single-path transports.
- */
- if (!conn->c_trans->t_mp_capable)
- cp->cp_outgoing = (is_outgoing ? 1 : 0);
cp->cp_reconnect_jiffies = 0;
INIT_DELAYED_WORK(&cp->cp_send_w, rds_send_worker);
INIT_DELAYED_WORK(&cp->cp_recv_w, rds_recv_worker);