]> git.sur5r.net Git - u-boot/commit
net: nfs: Use the tx buffer to construct rpc msgs
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Aug 2016 20:03:26 +0000 (15:03 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 22 Aug 2016 19:20:58 +0000 (14:20 -0500)
commit998372b4798fd7ebb666f571950df925b8d80f69
treef67bd8043e37ba9e2c3cf2e4a60be989093bc077
parentd89ff2df33991b971b1388bc623d616e12b5e5fb
net: nfs: Use the tx buffer to construct rpc msgs

Instead of always allocating a huge temporary buffer on the stack and
then memcpy()ing the result into the transmit buffer, simply figure out
where in the transmit buffer the bytes will belong and write them there
directly as each message is built.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
net/nfs.c