net offloading: Convert skb_need_linearize() to use precomputed features.
authorJesse Gross <jesse@nicira.com>
Sun, 9 Jan 2011 06:23:34 +0000 (06:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jan 2011 07:35:35 +0000 (23:35 -0800)
commit02932ce9e2c136e6fab2571c8e0dd69ae8ec9853
treefd79af457060855375d9297755c48f5105912638
parent91ecb63c074d802f8cf103f1dafb4aed24d0f24c
net offloading: Convert skb_need_linearize() to use precomputed features.

This switches skb_need_linearize() to use the features that have
been centrally computed.  In doing so, this fixes a problem where
scatter/gather should not be used because the card does not support
checksum offloading on that type of packet.  On device registration
we only check that some form of checksum offloading is available if
scatter/gatther is enabled but we must also check at transmission
time.  Examples of this include IPv6 or vlan packets on a NIC that
only supports IPv4 offloading.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c