X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Frx%2Frx_globals.h;h=e5208d25291fd61a0ee6ed60488036fb443a8fec;hp=d546ab2122d3b49bb143535e7e7536d6ec99b3d5;hb=4bbf0dae237e01127f4d1a4d913f00e8dad859a3;hpb=e90b19e008ec8bc6e9eb308c671d45781b7b5a46 diff --git a/src/rx/rx_globals.h b/src/rx/rx_globals.h index d546ab2..e5208d2 100644 --- a/src/rx/rx_globals.h +++ b/src/rx/rx_globals.h @@ -207,6 +207,7 @@ EXT struct rx_ts_info_t * rx_ts_info_init(void); /* init function for thread-s * in which the first tier is thread-specific, and the second tier is * a global free packet queue */ EXT struct rx_queue rx_freePacketQueue; +#ifdef RX_TRACK_PACKETS #define RX_FPQ_MARK_FREE(p) \ do { \ if ((p)->flags & RX_PKTFLAG_FREE) \ @@ -223,6 +224,18 @@ EXT struct rx_queue rx_freePacketQueue; (p)->flags = 0; /* clear RX_PKTFLAG_FREE, initialize the rest */ \ (p)->header.flags = 0; \ } while(0) +#else +#define RX_FPQ_MARK_FREE(p) \ + do { \ + (p)->length = 0; \ + (p)->niovecs = 0; \ + } while(0) +#define RX_FPQ_MARK_USED(p) \ + do { \ + (p)->flags = 0; /* clear RX_PKTFLAG_FREE, initialize the rest */ \ + (p)->header.flags = 0; \ + } while(0) +#endif #define RX_PACKET_IOV_INIT(p) \ do { \ (p)->wirevec[0].iov_base = (char *)((p)->wirehead); \