Re: [Patch] nfs: extended buffer length for eeproo 100

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 20, 2008, at 10:17 AM, Guillaume Rousse wrote:
And old patch still present in mandriva nfs-utils package, from an unknown author
--
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62
diff -uNr nfs-utils-0.2.1/support/nfs/rpcmisc.c nfs-utils-0.2.1- eepro100/support/nfs/rpcmisc.c
--- nfs-utils-0.2.1/support/nfs/rpcmisc.c	Sun Apr 30 00:14:56 2000
+++ nfs-utils-0.2.1-eepro100/support/nfs/rpcmisc.c Fri Jan 19 13:51:45 2001
@@ -176,7 +176,8 @@
		int sblen, rblen;

		/* 1024 for rpc & transport overheads */
-		sblen = rblen = socksz + 1024;
+		/* but, 2048 needed for eepro100 */
+		sblen = rblen = socksz + 2048;
if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &sblen, sizeof sblen) < 0 ||
		    setsockopt(s, SOL_SOCKET, SO_RCVBUF, &rblen, sizeof rblen) < 0)
			xlog(L_ERROR, "setsockopt failed: %s\n", strerror(errno));

I can't see why user-space applications would need a larger socket buffer for a specific NIC.

However, this is moot because this whole section of code has been ifdef'd out since 2001. I think you can safely drop this one.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux