staging/hfi1: Change default krcvqs
authorjubin.john@intel.com <jubin.john@intel.com>
Mon, 11 Jan 2016 23:30:55 +0000 (18:30 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 15:38:06 +0000 (10:38 -0500)
Change the default number of krcvqs to number of numa nodes + 1
based on the performance data collected.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c

index bbe5ad85cec07d47c460e35b53a0dae1e9672ed4..503bfca584c0599e3d4d489fe86ad77daa634051 100644 (file)
@@ -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);
        /*