datapath: Ensure packet length matches headers during checksum setup.
authorJesse Gross <jesse@nicira.com>
Mon, 26 Apr 2010 21:19:28 +0000 (14:19 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 30 Apr 2010 01:14:03 +0000 (18:14 -0700)
commite1c1de3922cddb59775e819b47c421f90f364214
tree66daafbef7e11e8d8b8b3212e294245487758048
parentceb4559f662c12eeb2bf9e4665ec88e96d990752
datapath: Ensure packet length matches headers during checksum setup.

During the setup of checksumming pointers we need to make sure that
the transport headers are in the skb linear data area.  However, we
don't currently verify that the lengths in the packet headers are
within the size of the packet.  This makes that check before a
BUG() check does it for us.

CC: "Nick Couchman" <Nick.Couchman@seakr.com>
datapath/datapath.c