]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70779b561d2701dee5adda44c47ba352138ca262
treefd79af457060855375d9297755c48f5105912638
parent24867cb9668ac6db40d8447d91bd33a7608aea26
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