rds: Changing IP address internal representation to struct in6_addr
This patch changes the internal representation of an IP address to use struct in6_addr. IPv4 address is stored as an IPv4 mapped address. All the functions which take an IP address as argument are also changed to use struct in6_addr. But RDS socket layer is not modified such that it still does not accept IPv6 address from an application. And RDS layer does not accept nor initiate IPv6 connections. v2: Fixed sparse warnings. Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a6c90dd321
commit
eee2fa6ab3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2006 Oracle. All rights reserved.
|
||||
* Copyright (c) 2006, 2017 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* This software is available to you under a choice of one of two
|
||||
* licenses. You may choose to be licensed under the terms of the GNU
|
||||
@@ -305,7 +305,7 @@ void rds_ib_send_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc)
|
||||
|
||||
/* We expect errors as the qp is drained during shutdown */
|
||||
if (wc->status != IB_WC_SUCCESS && rds_conn_up(conn)) {
|
||||
rds_ib_conn_error(conn, "send completion on <%pI4,%pI4> had status %u (%s), disconnecting and reconnecting\n",
|
||||
rds_ib_conn_error(conn, "send completion on <%pI6c,%pI6c> had status %u (%s), disconnecting and reconnecting\n",
|
||||
&conn->c_laddr, &conn->c_faddr, wc->status,
|
||||
ib_wc_status_msg(wc->status));
|
||||
}
|
||||
@@ -730,7 +730,7 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
|
||||
first, &first->s_wr, ret, failed_wr);
|
||||
BUG_ON(failed_wr != &first->s_wr);
|
||||
if (ret) {
|
||||
printk(KERN_WARNING "RDS/IB: ib_post_send to %pI4 "
|
||||
printk(KERN_WARNING "RDS/IB: ib_post_send to %pI6c "
|
||||
"returned %d\n", &conn->c_faddr, ret);
|
||||
rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
|
||||
rds_ib_sub_signaled(ic, nr_sig);
|
||||
@@ -827,7 +827,7 @@ int rds_ib_xmit_atomic(struct rds_connection *conn, struct rm_atomic_op *op)
|
||||
send, &send->s_atomic_wr, ret, failed_wr);
|
||||
BUG_ON(failed_wr != &send->s_atomic_wr.wr);
|
||||
if (ret) {
|
||||
printk(KERN_WARNING "RDS/IB: atomic ib_post_send to %pI4 "
|
||||
printk(KERN_WARNING "RDS/IB: atomic ib_post_send to %pI6c "
|
||||
"returned %d\n", &conn->c_faddr, ret);
|
||||
rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
|
||||
rds_ib_sub_signaled(ic, nr_sig);
|
||||
@@ -967,7 +967,7 @@ int rds_ib_xmit_rdma(struct rds_connection *conn, struct rm_rdma_op *op)
|
||||
first, &first->s_rdma_wr.wr, ret, failed_wr);
|
||||
BUG_ON(failed_wr != &first->s_rdma_wr.wr);
|
||||
if (ret) {
|
||||
printk(KERN_WARNING "RDS/IB: rdma ib_post_send to %pI4 "
|
||||
printk(KERN_WARNING "RDS/IB: rdma ib_post_send to %pI6c "
|
||||
"returned %d\n", &conn->c_faddr, ret);
|
||||
rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
|
||||
rds_ib_sub_signaled(ic, nr_sig);
|
||||
|
Reference in New Issue
Block a user