]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-rx-extra-packets-20080816
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 16 Aug 2008 18:11:01 +0000 (18:11 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 16 Aug 2008 18:11:01 +0000 (18:11 +0000)
LICENSE MIT

Make the default number of pre-allocated rx packets equal to the number
of threads times the rx window size.

(cherry picked from commit dbd98583d35d6aea57cb4d9c46790479dc1a137e)

src/WINNT/afsd/afsd_init.c

index 4e9470bd0843aaf0c02f593a615c9326957f7824..b2a9f4825c32ce4a56a18e251201df8c7827c4bf 100644 (file)
@@ -1058,7 +1058,7 @@ int afsd_InitCM(char **reasonP)
     code = RegQueryValueEx(parmKey, "RxExtraPackets", NULL, NULL,
                            (BYTE *) &rx_extraPackets, &dummyLen);
     if (code != ERROR_SUCCESS) {
-        rx_extraPackets = 120;
+        rx_extraPackets = (numBkgD + numSvThreads + 5) * 64;
     }
     if (rx_extraPackets)
         afsi_log("RX extraPackets is %d", rx_extraPackets);