datapath: Avoid pskb_may_pull() checks where not needed.
authorBen Pfaff <blp@nicira.com>
Thu, 12 Aug 2010 22:37:47 +0000 (15:37 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 27 Aug 2010 19:32:07 +0000 (12:32 -0700)
commit7d0ab001dbc7bd4285aaf1dbcb881312ec32608c
tree3207bc7ca17d42f7ddd12d1a50f559c981c108d0
parent4c1ad233122408d073dd2265e9998ee87036b5ef
datapath: Avoid pskb_may_pull() checks where not needed.

These calls to pskb_may_pull() can be reduced to checks on skb->len because
in these contexts those headers will already have been pulled into the
skb linear area if it is there at all.

Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath/flow.c