X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=net%2Fnfs.h;h=a5a1b432e62c7900796c45306a0542e679c7b518;hb=c5c59df04d6bb394209936c2a2c2a3054ead9150;hp=ebd4266857fd07b4435f1200bfe52b99484ea4d6;hpb=cbd8a35c6dbaaca35494cbec319960887ad02dcf;p=u-boot diff --git a/net/nfs.h b/net/nfs.h index ebd4266857..a5a1b432e6 100644 --- a/net/nfs.h +++ b/net/nfs.h @@ -38,8 +38,14 @@ /* 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 @@ -62,11 +68,11 @@ struct rpc_t { uint32_t verifier; uint32_t v2; uint32_t astatus; - uint32_t data[1]; + uint32_t data[19]; } reply; } u; }; -extern void NfsStart (void); /* Begin NFS */ +extern void NfsStart(void); /* Begin NFS */ /**********************************************************************/