datapath: Drop BUG_ON when checksumming and copying.
authorJesse Gross <jesse@nicira.com>
Thu, 3 Mar 2011 21:53:08 +0000 (13:53 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 3 Mar 2011 22:56:20 +0000 (14:56 -0800)
commitfdd89fdc9943878e7cb1c43ba872b13f26c25e59
tree9138ff58d67cb283886df9561161faa515844a71
parent88366484fb5a3ba56661cf3971ebd7148075ad39
datapath: Drop BUG_ON when checksumming and copying.

Normally when performing checksum offloading the transport header
must be present in the linear data area.  However, this might not
be the case with packets processed by GRO.  On transmit these
packets are processed by GSO if emulation of checksum offloading
needs to be performed.  Unlike skb_checksum_help(), the GSO code
does not have any requirements about the packet structure.  Since
our code that copies and checksums packets to userspace is called
in conditions similar to GSO and does not have any assumptions
about layout, drop the BUG_ON assertion.

NIC-343

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