summaryrefslogtreecommitdiff
path: root/net/nfs.h
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini-list@gnudd.com>2009-08-07 11:58:56 (GMT)
committerBen Warren <biggerbadderben@gmail.com>2009-08-25 20:35:54 (GMT)
commit5cfaa4e54d0eb8232fa1cf092d955fdaed5b673d (patch)
treeca7ad9207d11c9b410f340640c95214ba7aecd12 /net/nfs.h
parent307ecb6db04eebdc06b8c87d48bf48d3cbd5e9d7 (diff)
downloadu-boot-fsl-qoriq-5cfaa4e54d0eb8232fa1cf092d955fdaed5b673d.tar.xz
net: defragment IP packets
The defragmenting code is enabled by CONFIG_IP_DEFRAG; the code is useful for TFTP and NFS transfers. The user can specify the maximum defragmented payload as CONFIG_NET_MAXDEFRAG (default 16k). Since NFS has a bigger per-packet overhead than TFTP, the static reassembly buffer can hold CONFIG_NET_MAXDEFRAG + the NFS overhead. The packet buffer is used as an array of "hole" structures, acting as a double-linked list. Each new fragment can split a hole in two, reduce a hole or fill a hole. No support is there for a fragment overlapping two diffrent holes (i.e., thre new fragment is across an already-received fragment). Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'net/nfs.h')
0 files changed, 0 insertions, 0 deletions