Page MenuHomeFreeBSD

D30477.diff
No OneTemporary

D30477.diff

diff --git a/sys/ofed/drivers/infiniband/core/ib_cache.c b/sys/ofed/drivers/infiniband/core/ib_cache.c
--- a/sys/ofed/drivers/infiniband/core/ib_cache.c
+++ b/sys/ofed/drivers/infiniband/core/ib_cache.c
@@ -45,6 +45,7 @@
#include <linux/netdevice.h>
#include <linux/in6.h>
+#include <rdma/ib_addr.h>
#include <rdma/ib_cache.h>
#include "core_priv.h"
diff --git a/sys/ofed/drivers/infiniband/core/ib_cm.c b/sys/ofed/drivers/infiniband/core/ib_cm.c
--- a/sys/ofed/drivers/infiniband/core/ib_cm.c
+++ b/sys/ofed/drivers/infiniband/core/ib_cm.c
@@ -56,6 +56,7 @@
#include <asm/atomic-long.h>
+#include <rdma/ib_addr.h>
#include <rdma/ib_cache.h>
#include <rdma/ib_cm.h>
#include "cm_msgs.h"
diff --git a/sys/ofed/drivers/infiniband/core/ib_sysfs.c b/sys/ofed/drivers/infiniband/core/ib_sysfs.c
--- a/sys/ofed/drivers/infiniband/core/ib_sysfs.c
+++ b/sys/ofed/drivers/infiniband/core/ib_sysfs.c
@@ -45,6 +45,7 @@
#include <linux/fs.h>
#include <linux/printk.h>
+#include <rdma/ib_addr.h>
#include <rdma/ib_mad.h>
#include <rdma/ib_pma.h>
diff --git a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
--- a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -50,6 +50,7 @@
#include <net/infiniband.h>
+#include <rdma/ib_addr.h>
#include <rdma/ib_cache.h>
MODULE_AUTHOR("Roland Dreier");
diff --git a/sys/ofed/include/rdma/ib_addr.h b/sys/ofed/include/rdma/ib_addr.h
--- a/sys/ofed/include/rdma/ib_addr.h
+++ b/sys/ofed/include/rdma/ib_addr.h
@@ -51,6 +51,13 @@
#include <rdma/ib_pack.h>
#include <rdma/ib_addr_freebsd.h>
+/* Linux netdevice.h but for working on an ifnet rather than a net_device. */
+#define dev_hold(d) if_ref(d)
+#define dev_put(d) if_rele(d)
+#define dev_net(d) ((d)->if_vnet)
+#define net_eq(a,b) ((a) == (b))
+
+
struct rdma_addr_client {
atomic_t refcount;
struct completion comp;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 4:53 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14720005
Default Alt Text
D30477.diff (1 KB)

Event Timeline