Browse Source

RDMA/iw_cxgb4: allocate enough space for debugfs "qps" dump

With IPv6 addresses, the "qps" debugfs is running out of space and
truncating the output.  Bump the required size accordingly.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Hariprasad S 9 years ago
parent
commit
68cebcab59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/infiniband/hw/cxgb4/device.c

+ 1 - 1
drivers/infiniband/hw/cxgb4/device.c

@@ -317,7 +317,7 @@ static int qp_open(struct inode *inode, struct file *file)
 	idr_for_each(&qpd->devp->qpidr, count_idrs, &count);
 	idr_for_each(&qpd->devp->qpidr, count_idrs, &count);
 	spin_unlock_irq(&qpd->devp->lock);
 	spin_unlock_irq(&qpd->devp->lock);
 
 
-	qpd->bufsize = count * 128;
+	qpd->bufsize = count * 180;
 	qpd->buf = vmalloc(qpd->bufsize);
 	qpd->buf = vmalloc(qpd->bufsize);
 	if (!qpd->buf) {
 	if (!qpd->buf) {
 		kfree(qpd);
 		kfree(qpd);