datapath: Don't unnecessarily set skb mac header.
authorJesse Gross <jesse@nicira.com>
Sat, 20 Nov 2010 01:20:34 +0000 (17:20 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:15 +0000 (17:10 -0800)
commit9e216c6b593c8e06cd80cccd70d7e4a1029d4d10
tree3f866159384c0f31b54aafa9fa8cb341d727ee87
parentf8d2160142e59448147c1c929681eaf312968418
datapath: Don't unnecessarily set skb mac header.

We currently call skb_reset_mac_header() in a few places when a
packet is received.  However, this is not needed because flow_extract()
will set all of the protocol headers during parsing and nothing needs
the packet headers before that time.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-internal_dev.c
datapath/vport-netdev.c