datapath: Free up flow_extract() return value for reporting errors.
authorBen Pfaff <blp@nicira.com>
Thu, 12 Aug 2010 22:12:28 +0000 (15:12 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 26 Aug 2010 16:15:42 +0000 (09:15 -0700)
commit769f8ccd5fe0cbfbf85fb41c42e6c164e21352be
tree54068fb883deb7f390526738f70b3e212e97b83a
parenta31e0e31c6f319b50e0d285117c5d187804a7b2e
datapath: Free up flow_extract() return value for reporting errors.

flow_extract() can fail due to memory allocation errors in pskb_may_pull().
Currently it doesn't return those properly, instead just reporting a bogus
flow to the caller.  But its return value is currently in use for reporting
whether the packet was an IPv4 fragment.  This commit switches to reporting
that in the skb itself so that the return value can be reused to report
errors.

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