This patch moves the definition of struct ib_port from
sysfs.c to ib_verbs.h so that HCAs can create files in
/sys/class/infiniband/<hca>/ports/<N>/

Signed-off-by: Ralph Campbell <ralph.campb...@qlogic.com>
---

diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
index 158a214..e01f3e7 100644
--- a/drivers/infiniband/core/sysfs.c
+++ b/drivers/infiniband/core/sysfs.c
@@ -39,14 +39,6 @@
 
 #include <rdma/ib_mad.h>
 
-struct ib_port {
-       struct kobject         kobj;
-       struct ib_device      *ibdev;
-       struct attribute_group gid_group;
-       struct attribute_group pkey_group;
-       u8                     port_num;
-};
-
 struct port_attribute {
        struct attribute attr;
        ssize_t (*show)(struct ib_port *, struct port_attribute *, char *buf);
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index c179318..5d23957 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1154,6 +1154,14 @@ struct ib_device {
        u8                           phys_port_cnt;
 };
 
+struct ib_port {
+       struct kobject         kobj;
+       struct ib_device      *ibdev;
+       struct attribute_group gid_group;
+       struct attribute_group pkey_group;
+       u8                     port_num;
+};
+
 struct ib_client {
        char  *name;
        void (*add)   (struct ib_device *);


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to