altq: Increase maximum number of CBQ and HFSC classes
In some configurations we need more classes than ALTQ supports by default. Increase the maximum number of classes we allow. This will only cost us a comparatively trivial amount of memory, so there's little reason not to do so. If ever we find we want even more we may want to consider turning these defines into a tunable, but for now do the easy thing. Reviewed by: donner@ MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29034
This commit is contained in:
parent
bb4a7d94b9
commit
448732b8e2
@ -119,7 +119,7 @@ typedef struct _cbq_class_stats_ {
|
|||||||
#define CBQ_TIMEOUT 10
|
#define CBQ_TIMEOUT 10
|
||||||
#define CBQ_LS_TIMEOUT (20 * hz / 1000)
|
#define CBQ_LS_TIMEOUT (20 * hz / 1000)
|
||||||
|
|
||||||
#define CBQ_MAX_CLASSES 256
|
#define CBQ_MAX_CLASSES 2048
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define State structures.
|
* Define State structures.
|
||||||
|
@ -60,7 +60,7 @@ struct service_curve_v1 {
|
|||||||
|
|
||||||
/* special class handles */
|
/* special class handles */
|
||||||
#define HFSC_NULLCLASS_HANDLE 0
|
#define HFSC_NULLCLASS_HANDLE 0
|
||||||
#define HFSC_MAX_CLASSES 64
|
#define HFSC_MAX_CLASSES 2048
|
||||||
|
|
||||||
/* hfsc class flags */
|
/* hfsc class flags */
|
||||||
#define HFCF_RED 0x0001 /* use RED */
|
#define HFCF_RED 0x0001 /* use RED */
|
||||||
|
Loading…
Reference in New Issue
Block a user