From: jubin.john@intel.com Date: Mon, 11 Jan 2016 23:30:55 +0000 (-0500) Subject: staging/hfi1: Change default krcvqs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0edf80eae01b7f211a1142856c6c8fc41ea3ce06;p=linux-beck.git staging/hfi1: Change default krcvqs Change the default number of krcvqs to number of numa nodes + 1 based on the performance data collected. Reviewed-by: Mike Marciniszyn Signed-off-by: Jubin John Signed-off-by: Doug Ledford --- diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index bbe5ad85cec0..503bfca584c0 100644 --- a/drivers/staging/rdma/hfi1/chip.c +++ b/drivers/staging/rdma/hfi1/chip.c @@ -12445,7 +12445,7 @@ static int set_up_context_variables(struct hfi1_devdata *dd) */ num_kernel_contexts = n_krcvqs + MIN_KERNEL_KCTXTS - 1; else - num_kernel_contexts = num_online_nodes(); + num_kernel_contexts = num_online_nodes() + 1; num_kernel_contexts = max_t(int, MIN_KERNEL_KCTXTS, num_kernel_contexts); /*