]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-tsfpq-macro-naming-20070105
authorDerrick Brashear <shadow@dementia.org>
Sat, 6 Jan 2007 01:20:07 +0000 (01:20 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 6 Jan 2007 01:20:07 +0000 (01:20 +0000)
rename the queue-splicing versions of the checkin/checkout macros

(cherry picked from commit cbba8d8b887957122c1870f8a5a4a823af889d0f)

src/rx/rx_globals.h
src/rx/rx_packet.c

index f268153eccc250945a786cdbf4496bdd73157be5..99719fdee517a0dc4d74a02a5c7b8a3ec1e4e8d9 100644 (file)
@@ -345,7 +345,7 @@ EXT void rxi_FlushLocalPacketsTSFPQ(void); /* flush all thread-local packets to
         (rx_ts_info_p)->_FPQ.checkout_xfer++; \
     } while(0)
 /* checkout multiple packets from the thread-specific free packet queue */
-#define RX_TS_FPQ_CHECKOUT2(rx_ts_info_p,num_transfer,q) \
+#define RX_TS_FPQ_QCHECKOUT(rx_ts_info_p,num_transfer,q) \
     do { \
         register int i; \
         register struct rx_packet *p; \
@@ -372,7 +372,7 @@ EXT void rxi_FlushLocalPacketsTSFPQ(void); /* flush all thread-local packets to
 /* num_transfer must equal length of (q); it is not a means of checking 
  * in part of (q).  passing num_transfer just saves us instructions 
  * since caller already knows length of (q) for other reasons */
-#define RX_TS_FPQ_CHECKIN2(rx_ts_info_p,num_transfer,q) \
+#define RX_TS_FPQ_QCHECKIN(rx_ts_info_p,num_transfer,q) \
     do { \
         register struct rx_packet *p, *np; \
         for (queue_Scan((q), p, np, rx_packet)) { \
index edc0bb0e7aa0dc544ae5b0c4231a114585b9384d..85d1f72759ced52fe2ba166cf6eeada0784142b5 100644 (file)
@@ -297,7 +297,7 @@ AllocPacketBufs(int class, int num_pkts, struct rx_queue * q)
        USERPRI;
     }
 
-    RX_TS_FPQ_CHECKOUT2(rx_ts_info, num_pkts, q);
+    RX_TS_FPQ_QCHECKOUT(rx_ts_info, num_pkts, q);
 
     return num_pkts;
 }
@@ -393,7 +393,7 @@ rxi_FreePackets(int num_pkts, struct rx_queue * q)
 
     if (num_pkts)
         for (queue_Scan(q, c, nc, rx_packet)) 
-            RX_TS_FPQ_CHECKIN2(rx_ts_info, num_pkts, q);
+            RX_TS_FPQ_QCHECKIN(rx_ts_info, num_pkts, q);
 
     if (rx_ts_info->_FPQ.len > rx_TSFPQLocalMax) {
         NETPRI;