Commit 4a7aaf88 authored by Jason Gunthorpe's avatar Jason Gunthorpe

RDMA/qib: Use attributes for the port sysfs

qib should not be creating a mess of kobjects to attach to the port
kobject - this is all attributes. The proper API is to create an
attribute_group list and create it against the port's kobject.

Link: https://lore.kernel.org/r/911e0031e1ed495b0006e8a6efec7b67a702cd5e.1623427137.git.leonro@nvidia.comTested-by: default avatarMike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 526a12c8
...@@ -521,10 +521,6 @@ struct qib_pportdata { ...@@ -521,10 +521,6 @@ struct qib_pportdata {
struct qib_devdata *dd; struct qib_devdata *dd;
struct qib_chippport_specific *cpspec; /* chip-specific per-port */ struct qib_chippport_specific *cpspec; /* chip-specific per-port */
struct kobject pport_kobj;
struct kobject pport_cc_kobj;
struct kobject sl2vl_kobj;
struct kobject diagc_kobj;
/* GUID for this interface, in network order */ /* GUID for this interface, in network order */
__be64 guid; __be64 guid;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment