svcrpc: track rpc data length separately from sk_tcplen
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 3 Dec 2012 21:45:35 +0000 (16:45 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Dec 2012 12:49:14 +0000 (07:49 -0500)
commit8af345f58ac9b350bb23c1457c613381d9f00472
tree5713862546aad1e24784079ef4eae8edfc37de83
parent6a72ae2e23922bc96e8f3de24a5203be6edc2539
svcrpc: track rpc data length separately from sk_tcplen

Keep a separate field, sk_datalen, that tracks only the data contained
in a fragment, not including the fragment header.

For now, this is always just max(0, sk_tcplen - 4), but after we allow
multiple fragments sk_datalen will accumulate the total rpc data size
while sk_tcplen only tracks progress receiving the current fragment.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svcsock.h
net/sunrpc/svcsock.c