summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-12-05 22:11:17 -0500
committerDavid S. Miller <davem@davemloft.net>2017-12-06 15:09:13 -0500
commitcc166427dcdab39a96140fded18ac23be5f0a1ed (patch)
tree3e7b0e2a412e37f7a5a4e9000c496de3ecb9a633 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h
parentd9b8693783e8a1ce8e4495d13d1dd6d8081f5070 (diff)
downloadop-kernel-dev-cc166427dcdab39a96140fded18ac23be5f0a1ed.zip
op-kernel-dev-cc166427dcdab39a96140fded18ac23be5f0a1ed.tar.gz
tun: avoid unnecessary READ_ONCE in tun_net_xmit
The statement no longer serves a purpose. Commit fa35864e0bb7 ("tuntap: Fix for a race in accessing numqueues") added the ACCESS_ONCE to avoid a race condition with skb_queue_len. Commit 436accebb530 ("tuntap: remove unnecessary sk_receive_queue length check during xmit") removed the affected skb_queue_len check. Commit 96f84061620c ("tun: add eBPF based queue selection method") split the function, reading the field a second time in the callee. The temp variable is now only read once, so just remove it. Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud