summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/hdlc.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-12-20 20:29:51 +0000
committerbrian <brian@FreeBSD.org>1999-12-20 20:29:51 +0000
commitff8174b1b3e9f7d40f556d9af0d8168f7b81cefa (patch)
tree0f1b79a384d061f785330452ed26aef1497aca77 /usr.sbin/ppp/hdlc.h
parent86f30d4f38c1b3bdc30e15482e3d749c9ad5f159 (diff)
downloadFreeBSD-src-ff8174b1b3e9f7d40f556d9af0d8168f7b81cefa.zip
FreeBSD-src-ff8174b1b3e9f7d40f556d9af0d8168f7b81cefa.tar.gz
Implement mbuf allocation internally by maintaining 8 buckets of
different sized mbufs, and mallocing them in chunks of 20 mbufs at a time. This improves back-to-back throughput by between 7 and 8%
Diffstat (limited to 'usr.sbin/ppp/hdlc.h')
-rw-r--r--usr.sbin/ppp/hdlc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/hdlc.h b/usr.sbin/ppp/hdlc.h
index 25398a4..a370469 100644
--- a/usr.sbin/ppp/hdlc.h
+++ b/usr.sbin/ppp/hdlc.h
@@ -36,11 +36,11 @@
#define GOODFCS 0xf0b8 /* Good FCS value */
#define DEF_MRU 1500
-#define MAX_MRU 2048
+#define MAX_MRU M_MAXLEN
#define MIN_MRU 296
#define DEF_MTU 0 /* whatever peer says */
-#define MAX_MTU 2048
+#define MAX_MTU M_MAXLEN
#define MIN_MTU 296
struct physical;
OpenPOWER on IntegriCloud