tunneling: Check refcount of each page in frags.
authorJesse Gross <jesse@nicira.com>
Mon, 7 Feb 2011 21:05:34 +0000 (13:05 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 7 Feb 2011 21:47:34 +0000 (13:47 -0800)
commita992ec0b06bfddc4e8c2a50d79362b3dfb286dd5
tree6b68031b9c85c0ce80011ad144405e5fb9fb6115
parent78a04c9fc2b426231f3aedf8961491b238fc78bb
tunneling: Check refcount of each page in frags.

We check the refcount of each page in a fragmented skb
to see if we need to do a linearize before computing the
checksum.  However, although we iterate over the list of
pages, we always check the first one.

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