|
@@ -3,6 +3,8 @@
|
|
|
|
|
|
#include <rdma/ib_verbs.h>
|
|
#include <rdma/ib_verbs.h>
|
|
#include <rdma/rdma_cm.h>
|
|
#include <rdma/rdma_cm.h>
|
|
|
|
+#include <linux/pci.h>
|
|
|
|
+#include <linux/slab.h>
|
|
#include "rds.h"
|
|
#include "rds.h"
|
|
#include "rdma_transport.h"
|
|
#include "rdma_transport.h"
|
|
|
|
|
|
@@ -167,6 +169,10 @@ struct rds_ib_device {
|
|
spinlock_t spinlock; /* protect the above */
|
|
spinlock_t spinlock; /* protect the above */
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+#define pcidev_to_node(pcidev) pcibus_to_node(pcidev->bus)
|
|
|
|
+#define ibdev_to_node(ibdev) pcidev_to_node(to_pci_dev(ibdev->dma_device))
|
|
|
|
+#define rdsibdev_to_node(rdsibdev) ibdev_to_node(rdsibdev->dev)
|
|
|
|
+
|
|
/* bits for i_ack_flags */
|
|
/* bits for i_ack_flags */
|
|
#define IB_ACK_IN_FLIGHT 0
|
|
#define IB_ACK_IN_FLIGHT 0
|
|
#define IB_ACK_REQUESTED 1
|
|
#define IB_ACK_REQUESTED 1
|