|
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 |