ieee80211_superg.h (191753) | ieee80211_superg.h (244044) |
---|---|
1/*- 2 * Copyright (c) 2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/net80211/ieee80211_superg.h 191753 2009-05-02 20:16:55Z sam $ | 25 * $FreeBSD: head/sys/net80211/ieee80211_superg.h 244044 2012-12-09 01:08:44Z adrian $ |
26 */ 27#ifndef _NET80211_IEEE80211_SUPERG_H_ 28#define _NET80211_IEEE80211_SUPERG_H_ 29 30/* 31 * Atheros' 802.11 SuperG protocol support. 32 */ 33 --- 48 unchanged lines hidden (view full) --- 82 83void ieee80211_ff_node_init(struct ieee80211_node *); 84void ieee80211_ff_node_cleanup(struct ieee80211_node *); 85 86struct mbuf *ieee80211_ff_check(struct ieee80211_node *, struct mbuf *); 87void ieee80211_ff_age(struct ieee80211com *, struct ieee80211_stageq *, 88 int quanta); 89 | 26 */ 27#ifndef _NET80211_IEEE80211_SUPERG_H_ 28#define _NET80211_IEEE80211_SUPERG_H_ 29 30/* 31 * Atheros' 802.11 SuperG protocol support. 32 */ 33 --- 48 unchanged lines hidden (view full) --- 82 83void ieee80211_ff_node_init(struct ieee80211_node *); 84void ieee80211_ff_node_cleanup(struct ieee80211_node *); 85 86struct mbuf *ieee80211_ff_check(struct ieee80211_node *, struct mbuf *); 87void ieee80211_ff_age(struct ieee80211com *, struct ieee80211_stageq *, 88 int quanta); 89 |
90/* 91 * See ieee80211_ff_age() for a description of the locking 92 * expectation here. 93 */ |
|
90static __inline void 91ieee80211_ff_flush(struct ieee80211com *ic, int ac) 92{ 93 struct ieee80211_superg *sg = ic->ic_superg; 94 95 if (sg != NULL && sg->ff_stageq[ac].depth) 96 ieee80211_ff_age(ic, &sg->ff_stageq[ac], 0x7fffffff); 97} 98 | 94static __inline void 95ieee80211_ff_flush(struct ieee80211com *ic, int ac) 96{ 97 struct ieee80211_superg *sg = ic->ic_superg; 98 99 if (sg != NULL && sg->ff_stageq[ac].depth) 100 ieee80211_ff_age(ic, &sg->ff_stageq[ac], 0x7fffffff); 101} 102 |
103/* 104 * See ieee80211_ff_age() for a description of the locking 105 * expectation here. 106 */ |
|
99static __inline void 100ieee80211_ff_age_all(struct ieee80211com *ic, int quanta) 101{ 102 struct ieee80211_superg *sg = ic->ic_superg; 103 104 if (sg != NULL && sg->ff_stageqdepth) { 105 if (sg->ff_stageq[WME_AC_VO].depth) 106 ieee80211_ff_age(ic, &sg->ff_stageq[WME_AC_VO], quanta); --- 23 unchanged lines hidden --- | 107static __inline void 108ieee80211_ff_age_all(struct ieee80211com *ic, int quanta) 109{ 110 struct ieee80211_superg *sg = ic->ic_superg; 111 112 if (sg != NULL && sg->ff_stageqdepth) { 113 if (sg->ff_stageq[WME_AC_VO].depth) 114 ieee80211_ff_age(ic, &sg->ff_stageq[WME_AC_VO], quanta); --- 23 unchanged lines hidden --- |