mirror of https://gitee.com/openkylin/linux.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 <mike.marciniszyn@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
5b55ea3b6e
commit
0edf80eae0
|
@ -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);
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue