]> git.baikalelectronics.ru Git - kernel.git/commit
udp: call __skb_checksum_complete when doing full checksum
authorTom Herbert <therbert@google.com>
Sun, 15 Jun 2014 06:24:20 +0000 (23:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Jun 2014 08:00:49 +0000 (01:00 -0700)
commit49363ff61a40bb845f63924847e02031e423a321
treee174f88e8d58e5fc8c6b5f21faa6f0b654c25709
parentb88db4a82c903ada6e4d67a689c47793c5f0dddf
udp: call __skb_checksum_complete when doing full checksum

In __udp_lib_checksum_complete check if checksum is being done over all
the data (len is equal to skb->len) and if it is call
__skb_checksum_complete instead of __skb_checksum_complete_head. This
allows checksum to be saved in checksum complete.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h