diff options
author | Tom Herbert <therbert@google.com> | 2014-11-25 14:21:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-26 12:25:43 -0500 |
commit | 7c967b224a9a7061009ccbc47e1a0b605f1b6d81 (patch) | |
tree | bcb2343db0c704f7deb25246dec535d1b106e467 /net/ipv4/fou.c | |
parent | ced7a04e394fe1df41d13b833baab5cfcb1d03b3 (diff) |
net: Add remcsum_adjust as common function for remote checksum offload
This function does the work to update a checksum field as part of
remote checksum offload.
remcsum_adjust does the following:
1) Subtract out the calculated checksum from the beginning of the
packet (ptr arg) to the start offset.
2) Adjust the checksum field indicated by offset based on the modified
checksum value from above step.
3) Return the difference in the old checksum field value and the
new one. The caller will use this to update skb->csum and NAPI csum.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fou.c')
0 files changed, 0 insertions, 0 deletions