]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/rds/loop.c
Merge tag 'upstream-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs
[linux.git] / net / rds / loop.c
index feea1f96ee2ad582dce8f815442da1bbf6e0508a..1d73ad79c847bb7d918ba4ec358a4920a8e55c1c 100644 (file)
@@ -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
@@ -35,6 +35,7 @@
 #include <linux/in.h>
 #include <net/net_namespace.h>
 #include <net/netns/generic.h>
+#include <linux/ipv6.h>
 
 #include "rds_single_path.h"
 #include "rds.h"
@@ -88,11 +89,11 @@ static int rds_loop_xmit(struct rds_connection *conn, struct rds_message *rm,
 
        BUG_ON(hdr_off || sg || off);
 
-       rds_inc_init(&rm->m_inc, conn, conn->c_laddr);
+       rds_inc_init(&rm->m_inc, conn, &conn->c_laddr);
        /* For the embedded inc. Matching put is in loop_inc_free() */
        rds_message_addref(rm);
 
-       rds_recv_incoming(conn, conn->c_laddr, conn->c_faddr, &rm->m_inc,
+       rds_recv_incoming(conn, &conn->c_laddr, &conn->c_faddr, &rm->m_inc,
                          GFP_KERNEL);
 
        rds_send_drop_acked(conn, be64_to_cpu(rm->m_inc.i_hdr.h_sequence),