View | Details | Raw Unified | Return to bug 122744
Collapse All | Expand All

(-)tcp_hostcache.c 2008-04-14 13:43:02.000000000 +0400 (-2 / +1 lines)
Lines 348-355 Link Here
348
       /*
348
       /*
349
        * If the bucket limit is reached reuse the least used element
349
        * If the bucket limit is reached reuse the least used element
350
        */
350
        */
351
       if (hc_head->hch_length >= tcp_hostcache.bucket_limit ||
351
       if (hc_head->hch_length >= tcp_hostcache.bucket_limit) {
352
           tcp_hostcache.cache_count >= tcp_hostcache.cache_limit) {
353
               hc_entry = TAILQ_LAST(&hc_head->hch_bucket, hc_qhead);
352
               hc_entry = TAILQ_LAST(&hc_head->hch_bucket, hc_qhead);
354
               /*
353
               /*
355
                * At first we were dropping the last element, just to
354
                * At first we were dropping the last element, just to

Return to bug 122744