diff options
author | Tom Rini <trini@konsulko.com> | 2017-08-20 22:40:01 -0400 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2017-09-07 13:23:52 -0500 |
commit | 0b1e58067202316680423a6aafa73a9828ee07cc (patch) | |
tree | bdb3913ce8215604435ea44182d8ebc8051f6695 /net/nfs.h | |
parent | 05b29aa0cb6875e1d91eec5ba1949e8d0c1f2618 (diff) | |
download | u-boot-0b1e58067202316680423a6aafa73a9828ee07cc.tar.gz u-boot-0b1e58067202316680423a6aafa73a9828ee07cc.tar.bz2 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/nfs.h')
-rw-r--r-- | net/nfs.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -36,16 +36,13 @@ #define NFSERR_ISDIR 21 #define NFSERR_INVAL 22 -/* Block size used for NFS read accesses. A RPC reply packet (including all +/* + * Block size used for NFS read accesses. A RPC reply packet (including all * headers) must fit within a single Ethernet frame to avoid fragmentation. - * However, if CONFIG_IP_DEFRAG is set, the config file may want to use a - * bigger value. In any case, most NFS servers are optimized for a power of 2. + * However, if CONFIG_IP_DEFRAG is set, a bigger value could be used. In any + * case, most NFS servers are optimized for a power of 2. */ -#ifdef CONFIG_NFS_READ_SIZE -#define NFS_READ_SIZE CONFIG_NFS_READ_SIZE -#else -#define NFS_READ_SIZE 1024 /* biggest power of two that fits Ether frame */ -#endif +#define NFS_READ_SIZE 1024 /* biggest power of two that fits Ether frame */ /* Values for Accept State flag on RPC answers (See: rfc1831) */ enum rpc_accept_stat { |