Home
last modified time | relevance | path

Searched refs:hw_stats (Results 1 – 6 of 6) sorted by relevance

/net/sched/
Dsch_gred.c355 struct tc_gred_qopt_offload *hw_stats; in gred_offload_dump_stats() local
359 hw_stats = kzalloc(sizeof(*hw_stats), GFP_KERNEL); in gred_offload_dump_stats()
360 if (!hw_stats) in gred_offload_dump_stats()
363 hw_stats->command = TC_GRED_STATS; in gred_offload_dump_stats()
364 hw_stats->handle = sch->handle; in gred_offload_dump_stats()
365 hw_stats->parent = sch->parent; in gred_offload_dump_stats()
369 hw_stats->stats.xstats[i] = &table->tab[i]->stats; in gred_offload_dump_stats()
371 ret = qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_GRED, hw_stats); in gred_offload_dump_stats()
378 table->tab[i]->packetsin += hw_stats->stats.bstats[i].packets; in gred_offload_dump_stats()
379 table->tab[i]->bytesin += hw_stats->stats.bstats[i].bytes; in gred_offload_dump_stats()
[all …]
Dact_api.c841 if (a->hw_stats != TCA_ACT_HW_STATS_ANY && in tcf_action_dump_1()
843 a->hw_stats, TCA_ACT_HW_STATS_ANY)) in tcf_action_dump_1()
1027 u8 hw_stats = TCA_ACT_HW_STATS_ANY; in tcf_action_init_1() local
1047 hw_stats = tcf_action_hw_stats_get(tb[TCA_ACT_HW_STATS]); in tcf_action_init_1()
1065 a->hw_stats = hw_stats; in tcf_action_init_1()
Dsch_prio.c247 struct tc_prio_qopt_offload hw_stats = { in prio_dump_offload() local
259 return qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_PRIO, &hw_stats); in prio_dump_offload()
Dsch_red.c396 struct tc_red_qopt_offload hw_stats = { in red_dump_offload_stats() local
406 return qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_RED, &hw_stats); in red_dump_offload_stats()
Dcls_api.c3548 static enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats) in tc_act_hw_stats() argument
3550 if (WARN_ON_ONCE(hw_stats > TCA_ACT_HW_STATS_ANY)) in tc_act_hw_stats()
3552 else if (!hw_stats) in tc_act_hw_stats()
3555 return hw_stats; in tc_act_hw_stats()
3581 entry->hw_stats = tc_act_hw_stats(act->hw_stats); in tc_setup_flow_action()
3649 entry->hw_stats = tc_act_hw_stats(act->hw_stats); in tc_setup_flow_action()
/net/core/
Dflow_offload.c24 rule->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in flow_rule_alloc()