bridge: Remove unnecessary vlan_put_tag in br_handle_vlan
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Wed, 22 Jan 2014 00:29:37 +0000 (09:29 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 05:29:27 +0000 (21:29 -0800)
commitbdf4351bbc62f3b24151cf19ca6e531b68d8c340
tree9c85179f27fe9b46de73ea24d5aa6daee3826c69
parent00ca9c5b2b11d44eaf20a4b647efc999734323ec
bridge: Remove unnecessary vlan_put_tag in br_handle_vlan

br_handle_vlan() pushes HW accelerated vlan tag into skbuff when outgoing
port is the bridge device.
This is unnecessary because __netif_receive_skb_core() can handle skbs
with HW accelerated vlan tag. In current implementation,
__netif_receive_skb_core() needs to extract the vlan tag embedded in skb
data. This could cause low network performance especially when receiving
frames at a high frame rate on the bridge device.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Acked-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c