Re: [PATCH net-next v2] tun: replace get_cpu_ptr with this_cpu_ptr when bh disabled

2018-12-14 Thread David Miller
From: Prashant Bhole Date: Tue, 11 Dec 2018 11:43:07 +0900 > tun_xdp_one() runs with local bh disabled. So there is no need to > disable preemption by calling get_cpu_ptr while updating stats. This > patch replaces the use of get_cpu_ptr() with this_cpu_ptr() as a > micro-optimization. Also remov

Re: [PATCH net-next v2] tun: replace get_cpu_ptr with this_cpu_ptr when bh disabled

2018-12-10 Thread Michael S. Tsirkin
On Tue, Dec 11, 2018 at 11:43:07AM +0900, Prashant Bhole wrote: > tun_xdp_one() runs with local bh disabled. So there is no need to > disable preemption by calling get_cpu_ptr while updating stats. This > patch replaces the use of get_cpu_ptr() with this_cpu_ptr() as a > micro-optimization. Also re

[PATCH net-next v2] tun: replace get_cpu_ptr with this_cpu_ptr when bh disabled

2018-12-10 Thread Prashant Bhole
tun_xdp_one() runs with local bh disabled. So there is no need to disable preemption by calling get_cpu_ptr while updating stats. This patch replaces the use of get_cpu_ptr() with this_cpu_ptr() as a micro-optimization. Also removes related put_cpu_ptr call. Acked-by: Jason Wang Signed-off-by: Pr