Re: [PATCH][ipsec] xfrm: replace NR_CPU with num_possible_cpus()

2018-06-18 Thread Li RongQing
sorry, please drop this patch. I should replace NR_CPUS with nr_cpu_ids, i will resend it -R On 6/15/18, Li RongQing wrote: > The default NR_CPUS can be very large, but actual possible nr_cpu_ids > usually is very small. For some x86 distribution, the NR_CPUS is 8192 > and nr_cpu_ids is 4. > >

[PATCH][ipsec] xfrm: replace NR_CPU with num_possible_cpus()

2018-06-15 Thread Li RongQing
The default NR_CPUS can be very large, but actual possible nr_cpu_ids usually is very small. For some x86 distribution, the NR_CPUS is 8192 and nr_cpu_ids is 4. when xfrm_init is running, num_possible_cpus() should work Signed-off-by: Li RongQing Signed-off-by: Wang Li --- net/xfrm/xfrm_policy