Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc57236f authored by Mitko Haralanov's avatar Mitko Haralanov Committed by Doug Ledford
Browse files

staging/rdma/hfi1: Allocate send ctxt on device NUMA node



Allocate the user mode send context memory on the numa node which the
device is attached to for better performance.

Reviewed-by: default avatarDean Luick <dean.luick@intel.com>
Reviewed-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarMitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 957558c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1029,7 +1029,7 @@ static int allocate_ctxt(struct file *fp, struct hfi1_devdata *dd,
	 * Allocate and enable a PIO send context.
	 * Allocate and enable a PIO send context.
	 */
	 */
	uctxt->sc = sc_alloc(dd, SC_USER, uctxt->rcvhdrqentsize,
	uctxt->sc = sc_alloc(dd, SC_USER, uctxt->rcvhdrqentsize,
			     uctxt->numa_id);
			     uctxt->dd->node);
	if (!uctxt->sc)
	if (!uctxt->sc)
		return -ENOMEM;
		return -ENOMEM;