ifq_var.h (0faec0d1) ifq_var.h (9275f515)
1/*-
2 * Copyright (c) 2005 The DragonFly Project. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 228 unchanged lines hidden (view full) ---

237 ifq_purge_locked(_ifq);
238 ALTQ_UNLOCK(_ifq);
239}
240
241/*
242 * WARNING: Should only be called in an MPSAFE manner.
243 */
244static __inline void
1/*-
2 * Copyright (c) 2005 The DragonFly Project. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 228 unchanged lines hidden (view full) ---

237 ifq_purge_locked(_ifq);
238 ALTQ_UNLOCK(_ifq);
239}
240
241/*
242 * WARNING: Should only be called in an MPSAFE manner.
243 */
244static __inline void
245ifq_purge_all_locked(struct ifaltq *_ifq)
246{
247 /* XXX temporary */
248 ifq_purge_locked(_ifq);
249}
250
251static __inline void
252ifq_purge_all(struct ifaltq *_ifq)
253{
254 ALTQ_LOCK(_ifq);
255 ifq_purge_all_locked(_ifq);
256 ALTQ_UNLOCK(_ifq);
257}
258
259/*
260 * WARNING: Should only be called in an MPSAFE manner.
261 */
262static __inline void
245ifq_classify(struct ifaltq *_ifq, struct mbuf *_m, uint8_t _af,
246 struct altq_pktattr *_pa)
247{
248#ifdef ALTQ
249 ALTQ_LOCK(_ifq);
250 if (ifq_is_enabled(_ifq)) {
251 _pa->pattr_af = _af;
252 _pa->pattr_hdr = mtod(_m, caddr_t);

--- 62 unchanged lines hidden ---
263ifq_classify(struct ifaltq *_ifq, struct mbuf *_m, uint8_t _af,
264 struct altq_pktattr *_pa)
265{
266#ifdef ALTQ
267 ALTQ_LOCK(_ifq);
268 if (ifq_is_enabled(_ifq)) {
269 _pa->pattr_af = _af;
270 _pa->pattr_hdr = mtod(_m, caddr_t);

--- 62 unchanged lines hidden ---