diff options
Diffstat (limited to 'net/rds/loop.c')
-rw-r--r-- | net/rds/loop.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/rds/loop.c b/net/rds/loop.c index feea1f96ee2a..1d73ad79c847 100644 --- a/net/rds/loop.c +++ b/net/rds/loop.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2006 Oracle. All rights reserved. | 2 | * Copyright (c) 2006, 2017 Oracle and/or its affiliates. All rights reserved. |
3 | * | 3 | * |
4 | * This software is available to you under a choice of one of two | 4 | * This software is available to you under a choice of one of two |
5 | * licenses. You may choose to be licensed under the terms of the GNU | 5 | * licenses. You may choose to be licensed under the terms of the GNU |
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/in.h> | 35 | #include <linux/in.h> |
36 | #include <net/net_namespace.h> | 36 | #include <net/net_namespace.h> |
37 | #include <net/netns/generic.h> | 37 | #include <net/netns/generic.h> |
38 | #include <linux/ipv6.h> | ||
38 | 39 | ||
39 | #include "rds_single_path.h" | 40 | #include "rds_single_path.h" |
40 | #include "rds.h" | 41 | #include "rds.h" |
@@ -88,11 +89,11 @@ static int rds_loop_xmit(struct rds_connection *conn, struct rds_message *rm, | |||
88 | 89 | ||
89 | BUG_ON(hdr_off || sg || off); | 90 | BUG_ON(hdr_off || sg || off); |
90 | 91 | ||
91 | rds_inc_init(&rm->m_inc, conn, conn->c_laddr); | 92 | rds_inc_init(&rm->m_inc, conn, &conn->c_laddr); |
92 | /* For the embedded inc. Matching put is in loop_inc_free() */ | 93 | /* For the embedded inc. Matching put is in loop_inc_free() */ |
93 | rds_message_addref(rm); | 94 | rds_message_addref(rm); |
94 | 95 | ||
95 | rds_recv_incoming(conn, conn->c_laddr, conn->c_faddr, &rm->m_inc, | 96 | rds_recv_incoming(conn, &conn->c_laddr, &conn->c_faddr, &rm->m_inc, |
96 | GFP_KERNEL); | 97 | GFP_KERNEL); |
97 | 98 | ||
98 | rds_send_drop_acked(conn, be64_to_cpu(rm->m_inc.i_hdr.h_sequence), | 99 | rds_send_drop_acked(conn, be64_to_cpu(rm->m_inc.i_hdr.h_sequence), |