[PATCH rdma-next] RDMA/rxe: Remove parent netdev name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Leon Romanovsky <leonro@xxxxxxxxxxxx>

There is no need to print parent, because it is
part of standard sysfs anyway.

[leonro@server ~]$ l /sys/class/infiniband/rxe0/
lrwxrwxrwx 1 root root    0 Apr 10 11:53 device -> ../../../virtio10

Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
---
 drivers/infiniband/sw/rxe/rxe_verbs.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c
index 8c3e2a18cfe4..ee0b6e471438 100644
--- a/drivers/infiniband/sw/rxe/rxe_verbs.c
+++ b/drivers/infiniband/sw/rxe/rxe_verbs.c
@@ -1081,26 +1081,6 @@ static int rxe_detach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid)
 	return rxe_mcast_drop_grp_elem(rxe, qp, mgid);
 }
 
-static ssize_t parent_show(struct device *device,
-			   struct device_attribute *attr, char *buf)
-{
-	struct rxe_dev *rxe =
-		rdma_device_to_drv_device(device, struct rxe_dev, ib_dev);
-
-	return snprintf(buf, 16, "%s\n", rxe_parent_name(rxe, 1));
-}
-
-static DEVICE_ATTR_RO(parent);
-
-static struct attribute *rxe_dev_attributes[] = {
-	&dev_attr_parent.attr,
-	NULL
-};
-
-static const struct attribute_group rxe_attr_group = {
-	.attrs = rxe_dev_attributes,
-};
-
 static int rxe_enable_driver(struct ib_device *ib_dev)
 {
 	struct rxe_dev *rxe = container_of(ib_dev, struct rxe_dev, ib_dev);
@@ -1229,7 +1209,6 @@ int rxe_register_device(struct rxe_dev *rxe, const char *ibdev_name)
 	}
 	rxe->tfm = tfm;
 
-	rdma_set_device_sysfs_group(dev, &rxe_attr_group);
 	dev->driver_id = RDMA_DRIVER_RXE;
 	err = ib_register_device(dev, ibdev_name);
 	if (err)
-- 
2.20.1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux