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

(-)b/sys/net/altq/altq_rmclass.c (-24 lines)
Lines 198-227 rmc_newclass(int pri, struct rm_ifdat *ifd, u_int nsecPerByte, Link Here
198
198
199
	if (pri >= RM_MAXPRIO)
199
	if (pri >= RM_MAXPRIO)
200
		return (NULL);
200
		return (NULL);
201
#ifndef ALTQ_RED
202
	if (flags & RMCF_RED) {
203
#ifdef ALTQ_DEBUG
204
		printf("rmc_newclass: RED not configured for CBQ!\n");
205
#endif
206
		return (NULL);
207
	}
208
#endif
209
#ifndef ALTQ_RIO
210
	if (flags & RMCF_RIO) {
211
#ifdef ALTQ_DEBUG
212
		printf("rmc_newclass: RIO not configured for CBQ!\n");
213
#endif
214
		return (NULL);
215
	}
216
#endif
217
#ifndef ALTQ_CODEL
218
	if (flags & RMCF_CODEL) {
219
#ifdef ALTQ_DEBUG
220
		printf("rmc_newclass: CODEL not configured for CBQ!\n");
221
#endif
222
		return (NULL);
223
	}
224
#endif
225
201
226
	cl = malloc(sizeof(struct rm_class), M_DEVBUF, M_NOWAIT | M_ZERO);
202
	cl = malloc(sizeof(struct rm_class), M_DEVBUF, M_NOWAIT | M_ZERO);
227
	if (cl == NULL)
203
	if (cl == NULL)

Return to bug 215716