Reset mac header in flow_extract(), because it might initially be null.
authorBen Pfaff <blp@nicira.com>
Wed, 12 Nov 2008 00:51:56 +0000 (16:51 -0800)
committerBen 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

index 48c2d4c..10060b0 100644 (file)
@@ -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;