[PATCH] fix iptables on systems with discontiguous processor ids
kaber at trash.net
Mon Oct 10 23:41:43 CEST 2005
David S. Miller wrote:
> From: Harald Welte <laforge at netfilter.org>
> Date: Mon, 10 Oct 2005 18:41:41 +0200
> Why don't any of the existing interfaces on cpumasks and numbers
> provide what you need here? Perhaps this routine you are adding
> (highest_processor_id()) belongs in linux/cpumask.h? Perhaps
> named something like "highest_possible_processor_id()" to be
> consistent with the "num_possible_cpus()" naming?
Even better would be a function returning the CPU ID as "physical"
ID, skipping holes in the space. This would allow to save the memory
for unused CPU IDs. Maybe a small table mapping "virtual" to "phyiscal"
More information about the netfilter-devel