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 48c2d4c9d64ebb3a99b391ffef7f86421a8f3a45..10060b05ddb67a73fba85c03030f822e34e1371c 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;