aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTom Rini2017-08-20 21:40:01 -0500
committerJoe Hershberger2017-09-07 13:23:52 -0500
commit0b1e58067202316680423a6aafa73a9828ee07cc (patch)
treebdb3913ce8215604435ea44182d8ebc8051f6695 /net
parent05b29aa0cb6875e1d91eec5ba1949e8d0c1f2618 (diff)
downloadu-boot-0b1e58067202316680423a6aafa73a9828ee07cc.tar.gz
u-boot-0b1e58067202316680423a6aafa73a9828ee07cc.tar.xz
u-boot-0b1e58067202316680423a6aafa73a9828ee07cc.zip
net: nfs: Drop CONFIG_NFS_READ_SIZE
In the general case, CONFIG_NFS_READ_SIZE is unchanged from the default of 1024. There are in fact no in-tree users that increase this size. Adjust the comment to reflect what could be done in the future in conjunction with CONFIG_IP_DEFRAG. Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/nfs.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/net/nfs.h b/net/nfs.h
index 70a1a6d554..1aa06e8fb9 100644
--- a/net/nfs.h
+++ b/net/nfs.h
@@ -36,16 +36,13 @@
36#define NFSERR_ISDIR 21 36#define NFSERR_ISDIR 21
37#define NFSERR_INVAL 22 37#define NFSERR_INVAL 22
38 38
39/* Block size used for NFS read accesses. A RPC reply packet (including all 39/*
40 * Block size used for NFS read accesses. A RPC reply packet (including all
40 * headers) must fit within a single Ethernet frame to avoid fragmentation. 41 * headers) must fit within a single Ethernet frame to avoid fragmentation.
41 * However, if CONFIG_IP_DEFRAG is set, the config file may want to use a 42 * However, if CONFIG_IP_DEFRAG is set, a bigger value could be used. In any
42 * bigger value. In any case, most NFS servers are optimized for a power of 2. 43 * case, most NFS servers are optimized for a power of 2.
43 */ 44 */
44#ifdef CONFIG_NFS_READ_SIZE 45#define NFS_READ_SIZE 1024 /* biggest power of two that fits Ether frame */
45#define NFS_READ_SIZE CONFIG_NFS_READ_SIZE
46#else
47#define NFS_READ_SIZE 1024 /* biggest power of two that fits Ether frame */
48#endif
49 46
50/* Values for Accept State flag on RPC answers (See: rfc1831) */ 47/* Values for Accept State flag on RPC answers (See: rfc1831) */
51enum rpc_accept_stat { 48enum rpc_accept_stat {