tg3: Do not include vlan acceleration features in vlan_features
authorVlad Yasevich <vyasevic@redhat.com>
Mon, 24 Mar 2014 21:52:12 +0000 (17:52 -0400)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 7 May 2014 06:31:04 +0000 (15:31 +0900)
commit644e9155d87ae780fb71e9f321a31ef8b4a0c4a8
tree5ab09ab73737a5efdb1cc9a377e5c725fafe6e32
parent8d6c897e04863c2cc1403ab3cc388a6d84ed3d40
tg3: Do not include vlan acceleration features in vlan_features

[ Upstream commit 51dfe7b944998eaeb2b34d314f3a6b16a5fd621b ]

Including hardware acceleration features in vlan_features breaks
stacked vlans (Q-in-Q) by marking the bottom vlan interface as
capable of acceleration.  This causes one of the tags to be lost
and the packets are sent with a sing vlan header.

CC: Nithin Nayak Sujir <nsujir@broadcom.com>
CC: Michael Chan <mchan@broadcom.com>
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/ethernet/broadcom/tg3.c