public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] staging/rdma/hfi1: Remove incorrect link credit check
@ 2015-12-18  0:24 Jubin John
       [not found] ` <1450398255-10346-1-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Jubin John @ 2015-12-18  0:24 UTC (permalink / raw)
  To: gregkh, devel; +Cc: linux-rdma, dledford

From: Dean Luick <dean.luick@intel.com>

Remove an invalid sanity check that compares the local link
credits with the peer link credits.  The two have no dependency
on each other.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
---
 drivers/staging/rdma/hfi1/chip.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c
index dc69159..78a5f08 100644
--- a/drivers/staging/rdma/hfi1/chip.c
+++ b/drivers/staging/rdma/hfi1/chip.c
@@ -7267,8 +7267,7 @@ static int set_buffer_control(struct hfi1_devdata *dd,
 		new_bc->vl[i].shared = 0;
 	}
 	new_total += be16_to_cpu(new_bc->overall_shared_limit);
-	if (new_total > (u32)dd->link_credits)
-		return -EINVAL;
+
 	/* fetch the current values */
 	get_buffer_control(dd, &cur_bc, &cur_total);
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-23 22:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-18  0:24 [PATCH 1/3] staging/rdma/hfi1: Remove incorrect link credit check Jubin John
     [not found] ` <1450398255-10346-1-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-18  0:24   ` [PATCH 2/3] staging/rdma/hfi1: Fix module parameter spelling Jubin John
2015-12-18  6:42     ` Dan Carpenter
2015-12-19  0:22       ` Jubin John
2015-12-18  0:24   ` [PATCH 3/3] staging/rdma/hfi1: check for ARMED->ACTIVE transition in receive interrupt Jubin John
     [not found]     ` <1450398255-10346-3-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-18  6:31       ` Dan Carpenter
2015-12-23 22:27         ` Jubin John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox