summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorMichael Brown2012-07-09 10:55:26 +0200
committerMichael Brown2012-07-09 11:08:38 +0200
commit024247317d50ffc4c44dd041aae19ae23b72788e (patch)
treec059ac8afb0a71f79ba3795b2ff2d954f70cd0ce /src/crypto
parent[malloc] Discard cached items less aggressively (diff)
downloadipxe-024247317d50ffc4c44dd041aae19ae23b72788e.tar.gz
ipxe-024247317d50ffc4c44dd041aae19ae23b72788e.tar.xz
ipxe-024247317d50ffc4c44dd041aae19ae23b72788e.zip
[arp] Try to avoid discarding ARP cache entries
Discarding the active ARP cache entry in the middle of a download will substantially disrupt the TCP stream. Try to minimise any such disruption by treating ARP cache entries as expensive, and discarding them only when nothing else is available to discard. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/x509.c b/src/crypto/x509.c
index a99f6ab9..a3a17991 100644
--- a/src/crypto/x509.c
+++ b/src/crypto/x509.c
@@ -143,7 +143,7 @@ static unsigned int x509_discard ( void ) {
}
/** X.509 cache discarder */
-struct cache_discarder x509_cache_discarder __cache_discarder = {
+struct cache_discarder x509_discarder __cache_discarder ( CACHE_NORMAL ) = {
.discard = x509_discard,
};