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

2018-12-10 Thread Michael S. Tsirkin
On Mon, Dec 10, 2018 at 02:06:18PM +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

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

2018-12-10 Thread Jason Wang
On 2018/12/10 下午1:06, 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 removes related put_cpu_pt

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

2018-12-09 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. Signed-off-by: Prashant Bhole --- dri