/net/core/ |
H A D | gen_estimator.c | 84 struct gnet_stats_basic_packed *bstats; member in struct:gen_estimator 126 if (e->bstats == NULL) 129 __gnet_stats_copy_basic(&b, e->cpu_bstats, e->bstats); 160 if (est->bstats > e->bstats) 170 struct gen_estimator *gen_find_node(const struct gnet_stats_basic_packed *bstats, argument 180 if (bstats > e->bstats) 182 else if (bstats < e->bstats || rate_es 206 gen_new_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_basic_cpu __percpu *cpu_bstats, struct gnet_stats_rate_est64 *rate_est, spinlock_t *stats_lock, struct nlattr *opt) argument 266 gen_kill_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_rate_est64 *rate_est) argument 298 gen_replace_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_basic_cpu __percpu *cpu_bstats, struct gnet_stats_rate_est64 *rate_est, spinlock_t *stats_lock, struct nlattr *opt) argument 315 gen_estimator_active(const struct gnet_stats_basic_packed *bstats, const struct gnet_stats_rate_est64 *rate_est) argument [all...] |
H A D | gen_stats.c | 101 __gnet_stats_copy_basic_cpu(struct gnet_stats_basic_packed *bstats, argument 114 bytes = bcpu->bstats.bytes; 115 packets = bcpu->bstats.packets; 118 bstats->bytes += bytes; 119 bstats->packets += packets; 124 __gnet_stats_copy_basic(struct gnet_stats_basic_packed *bstats, argument 129 __gnet_stats_copy_basic_cpu(bstats, cpu); 131 bstats->bytes = b->bytes; 132 bstats->packets = b->packets; 153 struct gnet_stats_basic_packed bstats local [all...] |
/net/sched/ |
H A D | sch_mqprio.c | 230 memset(&sch->bstats, 0, sizeof(sch->bstats)); 237 sch->bstats.bytes += qdisc->bstats.bytes; 238 sch->bstats.packets += qdisc->bstats.packets; 332 struct gnet_stats_basic_packed bstats = {0}; variable in typeref:struct:gnet_stats_basic_packed 348 bstats.bytes += qdisc->bstats.bytes; 349 bstats [all...] |
H A D | sch_mq.c | 106 memset(&sch->bstats, 0, sizeof(sch->bstats)); 113 sch->bstats.bytes += qdisc->bstats.bytes; 114 sch->bstats.packets += qdisc->bstats.packets; 202 if (gnet_stats_copy_basic(d, NULL, &sch->bstats) < 0 ||
|
H A D | sch_drr.c | 26 struct gnet_stats_basic_packed bstats; member in struct:drr_class 91 err = gen_replace_estimator(&cl->bstats, NULL, 120 err = gen_replace_estimator(&cl->bstats, NULL, &cl->rate_est, 142 gen_kill_estimator(&cl->bstats, &cl->rate_est); 285 if (gnet_stats_copy_basic(d, NULL, &cl->bstats) < 0 || 286 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || 409 bstats_update(&cl->bstats, skb);
|
H A D | sch_qfq.c | 138 struct gnet_stats_basic_packed bstats; member in struct:qfq_class 462 err = gen_replace_estimator(&cl->bstats, NULL, 488 err = gen_new_estimator(&cl->bstats, NULL, 510 gen_kill_estimator(&cl->bstats, &cl->rate_est); 535 gen_kill_estimator(&cl->bstats, &cl->rate_est); 671 if (gnet_stats_copy_basic(d, NULL, &cl->bstats) < 0 || 672 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || 1257 bstats_update(&cl->bstats, skb);
|
H A D | sch_atm.c | 52 struct gnet_stats_basic_packed bstats; member in struct:atm_flow_data 474 bstats_update(&flow->bstats, skb); 640 if (gnet_stats_copy_basic(d, NULL, &flow->bstats) < 0 ||
|
H A D | sch_cbq.c | 131 struct gnet_stats_basic_packed bstats; member in struct:cbq_class 711 cl->bstats.packets++; 712 cl->bstats.bytes += len; 1603 if (gnet_stats_copy_basic(d, NULL, &cl->bstats) < 0 || 1604 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || 1673 gen_kill_estimator(&cl->bstats, &cl->rate_est); 1761 err = gen_replace_estimator(&cl->bstats, NULL, 1855 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est,
|
H A D | sch_hfsc.c | 115 struct gnet_stats_basic_packed bstats; member in struct:hfsc_class 1019 err = gen_replace_estimator(&cl->bstats, NULL, 1069 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, 1119 gen_kill_estimator(&cl->bstats, &cl->rate_est); 1379 if (gnet_stats_copy_basic(d, NULL, &cl->bstats) < 0 || 1380 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || 1657 bstats_update(&cl->bstats, skb);
|
H A D | sch_htb.c | 119 struct gnet_stats_basic_packed bstats; member in struct:htb_class 676 bstats_update(&cl->bstats, skb); 861 bstats_update(&cl->bstats, skb); 1148 if (gnet_stats_copy_basic(d, NULL, &cl->bstats) < 0 || 1239 gen_kill_estimator(&cl->bstats, &cl->rate_est); 1406 err = gen_new_estimator(&cl->bstats, NULL, 1471 err = gen_replace_estimator(&cl->bstats, NULL,
|
H A D | sch_api.c | 981 err = gen_new_estimator(&sch->bstats, 1044 gen_replace_estimator(&sch->bstats, 1366 if (gnet_stats_copy_basic(&d, cpu_bstats, &q->bstats) < 0 || 1367 gnet_stats_copy_rate_est(&d, &q->bstats, &q->rate_est) < 0 ||
|
H A D | sch_multiq.c | 363 if (gnet_stats_copy_basic(d, NULL, &cl_q->bstats) < 0 ||
|
H A D | sch_prio.c | 327 if (gnet_stats_copy_basic(d, NULL, &cl_q->bstats) < 0 ||
|
H A D | sch_generic.c | 688 gen_kill_estimator(&qdisc->bstats, &qdisc->rate_est);
|
/net/netfilter/ |
H A D | xt_RATEEST.c | 67 gen_kill_estimator(&est->bstats, &est->rstats); 69 * gen_estimator est_timer() might access est->lock or bstats, 82 struct gnet_stats_basic_packed *stats = &info->est->bstats; 139 ret = gen_new_estimator(&est->bstats, NULL, &est->rstats,
|
/net/bridge/ |
H A D | br_device.c | 148 const struct pcpu_sw_netstats *bstats local 151 start = u64_stats_fetch_begin_irq(&bstats->syncp); 152 memcpy(&tmp, bstats, sizeof(tmp)); 153 } while (u64_stats_fetch_retry_irq(&bstats->syncp, start));
|