]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: Set hard_header_len according to available acceleration
authorVlad Yasevich <vyasevic@redhat.com>
Wed, 26 Mar 2014 15:47:56 +0000 (11:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Mar 2014 19:00:37 +0000 (15:00 -0400)
commit1798f3cbb6b5301ae75d3551e7f20111a3eea222
tree9c0a39d0db9ee11261c6261035ff355157720668
parent6d7f9ec77de7380863a4eb49132c6efe53d6cad5
vlan: Set hard_header_len according to available acceleration

Currently, if the card supports CTAG acceleration we do not
account for the vlan header even if we are configuring an
8021AD vlan.  This may not be best since we'll do software
tagging for 8021AD which will cause data copy on skb head expansion
Configure the length based on available hw offload capabilities and
vlan protocol.

CC: Patrick McHardy <kaber@trash.net>
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c
net/8021q/vlan_dev.c