8021q: set hard_header_len when VLAN offload features are toggled
authorJohn Fastabend <john.r.fastabend@intel.com>
Sat, 30 Oct 2010 14:22:32 +0000 (14:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2010 18:11:39 +0000 (10:11 -0800)
commit029f5fc31cdb35d6c8a7fe9a54bf21556e175988
tree6b30ca1d4e93095f8c0dce87f54a8f2bd55c4b53
parent58e998c6d23988490162cef0784b19ea274d90bb
8021q: set hard_header_len when VLAN offload features are toggled

Toggling the vlan tx|rx hw offloads needs to set the hard_header_len
as well otherwise we end up using LL_RESERVED_SPACE incorrectly.
This results in pskb_expand_head() being used unnecessarily.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c