git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nsh: set mac len based on inner packet
[sfrench/cifs-2.6.git]
/
net
/
nsh
/
nsh.c
diff --git
a/net/nsh/nsh.c
b/net/nsh/nsh.c
index 9696ef96b719bf24625adea2a959deac1d2a975f..1a30e165eeb4fd1b884a0d5cd79c6823a5de9feb 100644
(file)
--- a/
net/nsh/nsh.c
+++ b/
net/nsh/nsh.c
@@
-104,7
+104,7
@@
static struct sk_buff *nsh_gso_segment(struct sk_buff *skb,
__skb_pull(skb, nsh_len);
skb_reset_mac_header(skb);
- skb
_reset_mac_len(skb)
;
+ skb
->mac_len = proto == htons(ETH_P_TEB) ? ETH_HLEN : 0
;
skb->protocol = proto;
features &= NETIF_F_SG;