]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/nfs.h
arm: mx5: clock: add support for changing CPU clock via cmdline
[karo-tx-uboot.git] / net / nfs.h
index 712afa089aa98428a7c2f13c5e4788aaf4831271..53451dbd17c46b3a26a10fa855f85d1a6f9a86a1 100644 (file)
--- a/net/nfs.h
+++ b/net/nfs.h
@@ -1,10 +1,7 @@
 /*
  * (C) Masami Komiya <mkomiya@sonare.it> 2004
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2, or (at
- * your option) any later version.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __NFS_H__
 
 /* Block size used for NFS read accesses.  A RPC reply packet (including  all
  * headers) must fit within a single Ethernet frame to avoid fragmentation.
- * Chosen to be a power of two, as most NFS servers are optimized for this.  */
-#define NFS_READ_SIZE   1024
+ * 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.
+ */
+#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_MAXLINKDEPTH 16
 
@@ -66,7 +69,7 @@ struct rpc_t {
                } reply;
        } u;
 };
-extern void    NfsStart (void);        /* Begin NFS */
+extern void NfsStart(void);    /* Begin NFS */
 
 
 /**********************************************************************/