projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1c06b
)
Reset mac header in flow_extract(), because it might initially be null.
author
Ben Pfaff
<blp@nicira.com>
Wed, 12 Nov 2008 00:51:56 +0000
(16:51 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 13 Nov 2008 20:44:04 +0000
(12:44 -0800)
__alloc_skb() sets the mac header to null, and not all call chains
reset it.
datapath/flow.c
patch
|
blob
|
history
diff --git
a/datapath/flow.c
b/datapath/flow.c
index 48c2d4c9d64ebb3a99b391ffef7f86421a8f3a45..10060b05ddb67a73fba85c03030f822e34e1371c 100644
(file)
--- a/
datapath/flow.c
+++ b/
datapath/flow.c
@@
-343,6
+343,7
@@
int flow_extract(struct sk_buff *skb, uint16_t in_port,
return 0;
}
+ skb_reset_mac_header(skb);
eth = eth_hdr(skb);
esh = (struct eth_snap_hdr *) eth;
nh_ofs = sizeof *eth;