Commit 79c91159 authored by Committed by David S. MillerBrowse files
[ICMP]: Allocate data for __icmp(v6)_sk dynamically.
Own __icmp(v6)_sk should be present in each namespace. So, it should be allocated dynamically. Though, alloc_percpu does not fit the case as it implies additional dereferrence for no bonus. Allocate data for pointers just like __percpu_alloc_mask does and place pointers to struct sock into this array. Signed-off-by: Denis V. Lunev <email@example.com> Acked-by: Daniel Lezcano <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
Showing with 19 additions and 10 deletions