]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-rx-deal-with-afs34-jumbograms-again-20070105
authorDerrick Brashear <shadow@dementia.org>
Fri, 5 Jan 2007 23:15:40 +0000 (23:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 5 Jan 2007 23:15:40 +0000 (23:15 +0000)
try again at dealing with old jumbograms

(cherry picked from commit 52b036747c78139c5b0a69a934e46ae9f34e0741)

src/rx/rx_packet.c

index 59eed820f3c40db0fedb79eba1596230c356f690..edc0bb0e7aa0dc544ae5b0c4231a114585b9384d 100644 (file)
@@ -388,13 +388,12 @@ rxi_FreePackets(int num_pkts, struct rx_queue * q)
     osi_Assert(num_pkts >= 0);
     RX_TS_INFO_GET(rx_ts_info);
 
-    if (!num_pkts) {
-       for (queue_Scan(q, c, nc, rx_packet), num_pkts++) {
-           rxi_FreeDataBufsTSFPQ(c, 1, 0);
-       }
-    } else {
-       RX_TS_FPQ_CHECKIN2(rx_ts_info, num_pkts, q);
-    }
+    if (!num_pkts) 
+       queue_Count(q, c, nc, rx_packet, num_pkts);
+
+    if (num_pkts)
+        for (queue_Scan(q, c, nc, rx_packet)) 
+            RX_TS_FPQ_CHECKIN2(rx_ts_info, num_pkts, q);
 
     if (rx_ts_info->_FPQ.len > rx_TSFPQLocalMax) {
         NETPRI;