net: sctp: fix checksum marking for outgoing packets
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Wed, 13 Jul 2011 14:10:29 +0000 (14:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 22:16:31 +0000 (15:16 -0700)
commitb73c43f884b1b26ef8e824a33f3924f92e493c11
tree83b71863345ef94720c00b4d7aedc387d3eee8c7
parent51414d41084496aaefd06d7f19eb8206e8bfac2d
net: sctp: fix checksum marking for outgoing packets

Packets to devices without NETIF_F_SCTP_CSUM (including NETIF_F_NO_CSUM)
should be properly checksummed because the packets can be diverted or
rerouted after construction. This still leaves packets diverted from
NETIF_F_SCTP_CSUM-enabled devices with broken checksums. Fixing this
needs implementing software offload fallback in networking core.

For users of sctp_checksum_disable, skb->ip_summed should be left as
CHECKSUM_NONE and not CHECKSUM_UNNECESSARY as per include/linux/skbuff.h.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/output.c