[ewg] [PATCH] mlx4_core: request MSIX vectors as much as there CPU cores

Roland Dreier rdreier at cisco.com
Wed May 5 07:54:54 PDT 2010


 > The current code requires num_possible_cpus() + 1 MSIX vectors. However,
 > num_possible_cpus() stands for the max number of supported CPUs by the kernel.

I believe this is wrong -- num_possible_cpus() is the maximum number of
CPUs for the running system, including hotplug.

 > We should use num_online_cpus() which is the number of available CPUs for the
 > system.

But then we don't have vectors for hotplugged CPUs.

 - R.
-- 
Roland Dreier <rolandd at cisco.com> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html



More information about the ewg mailing list