Thread (27 messages) 27 messages, 4 authors, 2022-08-15

Re: [PATCH 2/2] net/mlx5e: Leverage sched_numa_hop_mask()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-08-10 17:42:17
Also in: lkml

On Wed, 10 Aug 2022 15:57:33 +0300 Tariq Toukan wrote:
quoted
+		for_each_cpu(cpu, mask) {
+			cpus[i] = cpu;
+			if (++i == ncomp_eqs)
+				goto spread_done;
+		}
+	}
+spread_done:
+	rcu_read_unlock();
  	ret = mlx5_irqs_request_vectors(dev, cpus, ncomp_eqs, table->comp_irqs);
  	kfree(cpus);
  	if (ret < 0)  
This logic is typical. Other drivers would also want to use it.
It must be introduced as a service/API function, if not by the sched 
topology, then at least by the networking subsystem.
Jakub, WDYT?
Agreed, no preference where the helper would live tho.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help