Lines Matching defs:txqstats
3932 void ieee80211_fill_txq_stats(struct cfg80211_txq_stats *txqstats,
3935 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_BACKLOG_BYTES))) {
3936 txqstats->filled |= BIT(NL80211_TXQ_STATS_BACKLOG_BYTES);
3937 txqstats->backlog_bytes = txqi->tin.backlog_bytes;
3940 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_BACKLOG_PACKETS))) {
3941 txqstats->filled |= BIT(NL80211_TXQ_STATS_BACKLOG_PACKETS);
3942 txqstats->backlog_packets = txqi->tin.backlog_packets;
3945 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_FLOWS))) {
3946 txqstats->filled |= BIT(NL80211_TXQ_STATS_FLOWS);
3947 txqstats->flows = txqi->tin.flows;
3950 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_DROPS))) {
3951 txqstats->filled |= BIT(NL80211_TXQ_STATS_DROPS);
3952 txqstats->drops = txqi->cstats.drop_count;
3955 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_ECN_MARKS))) {
3956 txqstats->filled |= BIT(NL80211_TXQ_STATS_ECN_MARKS);
3957 txqstats->ecn_marks = txqi->cstats.ecn_mark;
3960 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_OVERLIMIT))) {
3961 txqstats->filled |= BIT(NL80211_TXQ_STATS_OVERLIMIT);
3962 txqstats->overlimit = txqi->tin.overlimit;
3965 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_COLLISIONS))) {
3966 txqstats->filled |= BIT(NL80211_TXQ_STATS_COLLISIONS);
3967 txqstats->collisions = txqi->tin.collisions;
3970 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_TX_BYTES))) {
3971 txqstats->filled |= BIT(NL80211_TXQ_STATS_TX_BYTES);
3972 txqstats->tx_bytes = txqi->tin.tx_bytes;
3975 if (!(txqstats->filled & BIT(NL80211_TXQ_STATS_TX_PACKETS))) {
3976 txqstats->filled |= BIT(NL80211_TXQ_STATS_TX_PACKETS);
3977 txqstats->tx_packets = txqi->tin.tx_packets;
3983 struct cfg80211_txq_stats *txqstats)
4001 ieee80211_fill_txq_stats(txqstats, to_txq_info(sdata->vif.txq));
4004 txqstats->filled |= BIT(NL80211_TXQ_STATS_BACKLOG_PACKETS) |
4010 txqstats->backlog_packets = local->fq.backlog;
4011 txqstats->backlog_bytes = local->fq.memory_usage;
4012 txqstats->overlimit = local->fq.overlimit;
4013 txqstats->overmemory = local->fq.overmemory;
4014 txqstats->collisions = local->fq.collisions;
4015 txqstats->max_flows = local->fq.flows_cnt;