diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2016-06-30 23:11:10 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 20:45:17 (GMT) |
commit | 226f7a7d97e37220a442f52eb85ebff2cd6fc0d2 (patch) | |
tree | ab99e16e093ed09df00fd897eb11f3e3315794a7 /net/rds/tcp_send.c | |
parent | dc9a20020a73e81766f1a6341bcafb7f00b5f92a (diff) | |
download | linux-226f7a7d97e37220a442f52eb85ebff2cd6fc0d2.tar.xz |
RDS: Rework path specific indirections
Refactor code to avoid separate indirections for single-path
and multipath transports. All transports (both single and mp-capable)
will get a pointer to the rds_conn_path, and can trivially derive
the rds_connection from the ->cp_conn.
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/tcp_send.c')
-rw-r--r-- | net/rds/tcp_send.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rds/tcp_send.c b/net/rds/tcp_send.c index 710f1aa..52cda94 100644 --- a/net/rds/tcp_send.c +++ b/net/rds/tcp_send.c @@ -49,16 +49,16 @@ static void rds_tcp_cork(struct socket *sock, int val) set_fs(oldfs); } -void rds_tcp_xmit_prepare(struct rds_connection *conn) +void rds_tcp_xmit_path_prepare(struct rds_conn_path *cp) { - struct rds_tcp_connection *tc = conn->c_transport_data; + struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_cork(tc->t_sock, 1); } -void rds_tcp_xmit_complete(struct rds_connection *conn) +void rds_tcp_xmit_path_complete(struct rds_conn_path *cp) { - struct rds_tcp_connection *tc = conn->c_transport_data; + struct rds_tcp_connection *tc = cp->cp_transport_data; rds_tcp_cork(tc->t_sock, 0); } |