SUNRPC: Rename xs_encode_tcp_fragment_header()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 9 May 2011 19:22:34 +0000 (15:22 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 May 2011 21:42:47 +0000 (17:42 -0400)
commit61677eeec29e87edc03a1061ae0a04b92507450d
treea305e0359d5c2b3cd611f9989bf18f4202c48cb2
parent26f04dde681c6a48b2bacfc5fe01fef204419b0c
SUNRPC: Rename xs_encode_tcp_fragment_header()

Clean up: Use a more generic name for xs_encode_tcp_fragment_header();
it's appropriate to use for all stream transport types.  We're about
to add new stream transport.

Also, move it to a place where it is more easily shared amongst the
various send_request methods.  And finally, replace the "htonl" macro
invocation with its modern equivalent.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprtsock.c