diff options
author | Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> | 2018-12-11 05:43:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-15 00:36:26 +0300 |
commit | 6342ca644713601b42dcb8f35e3751afc0943373 (patch) | |
tree | c03c2eeddcd78b298fa4795b3545b571400efce1 /drivers/net/ethernet/ibm/ibmvnic.c | |
parent | c2c79a32fb860ee374afe58fee6d67ab6aa83081 (diff) | |
download | linux-6342ca644713601b42dcb8f35e3751afc0943373.tar.xz |
tun: replace get_cpu_ptr with this_cpu_ptr when bh disabled
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 <jasowang@redhat.com>
Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmvnic.c')
0 files changed, 0 insertions, 0 deletions