/systemd-251/src/network/tc/ |
D | qdisc.c | 46 _cleanup_(qdisc_freep) QDisc *qdisc = NULL; in qdisc_new() 50 qdisc = new(QDisc, 1); in qdisc_new() 51 if (!qdisc) in qdisc_new() 54 *qdisc = (QDisc) { in qdisc_new() 60 qdisc = malloc0(qdisc_vtable[kind]->object_size); in qdisc_new() 61 if (!qdisc) in qdisc_new() 64 qdisc->parent = TC_H_ROOT; in qdisc_new() 65 qdisc->kind = kind; in qdisc_new() 67 if (QDISC_VTABLE(qdisc)->init) { in qdisc_new() 68 r = QDISC_VTABLE(qdisc)->init(qdisc); in qdisc_new() [all …]
|
D | cake.c | 15 static int cake_init(QDisc *qdisc) { in cake_init() argument 18 assert(qdisc); in cake_init() 20 c = CAKE(qdisc); in cake_init() 34 static int cake_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in cake_fill_message() argument 39 assert(qdisc); in cake_fill_message() 42 assert_se(c = CAKE(qdisc)); in cake_fill_message() 140 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_cake_bandwidth() 151 r = qdisc_new_static(QDISC_KIND_CAKE, network, filename, section_line, &qdisc); in config_parse_cake_bandwidth() 160 c = CAKE(qdisc); in config_parse_cake_bandwidth() 165 TAKE_PTR(qdisc); in config_parse_cake_bandwidth() [all …]
|
D | fq.c | 14 static int fair_queueing_init(QDisc *qdisc) { in fair_queueing_init() argument 17 assert(qdisc); in fair_queueing_init() 19 fq = FQ(qdisc); in fair_queueing_init() 27 static int fair_queueing_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in fair_queueing_fill_message() argument 32 assert(qdisc); in fair_queueing_fill_message() 35 assert_se(fq = FQ(qdisc)); in fair_queueing_fill_message() 117 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_fair_queueing_u32() 128 r = qdisc_new_static(QDISC_KIND_FQ, network, filename, section_line, &qdisc); in config_parse_fair_queueing_u32() 137 fq = FQ(qdisc); in config_parse_fair_queueing_u32() 153 qdisc = NULL; in config_parse_fair_queueing_u32() [all …]
|
D | tbf.c | 18 static int token_bucket_filter_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in token_bucket_filter_fill_message() argument 24 assert(qdisc); in token_bucket_filter_fill_message() 27 assert_se(tbf = TBF(qdisc)); in token_bucket_filter_fill_message() 125 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_token_bucket_filter_size() 136 r = qdisc_new_static(QDISC_KIND_TBF, network, filename, section_line, &qdisc); in config_parse_token_bucket_filter_size() 145 tbf = TBF(qdisc); in config_parse_token_bucket_filter_size() 159 TAKE_PTR(qdisc); in config_parse_token_bucket_filter_size() 182 TAKE_PTR(qdisc); in config_parse_token_bucket_filter_size() 199 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_token_bucket_filter_rate() 210 r = qdisc_new_static(QDISC_KIND_TBF, network, filename, section_line, &qdisc); in config_parse_token_bucket_filter_rate() [all …]
|
D | gred.c | 13 static int generic_random_early_detection_init(QDisc *qdisc) { in generic_random_early_detection_init() argument 16 assert(qdisc); in generic_random_early_detection_init() 18 gred = GRED(qdisc); in generic_random_early_detection_init() 25 static int generic_random_early_detection_fill_message(Link *link, QDisc *qdisc, sd_netlink_message… in generic_random_early_detection_fill_message() argument 30 assert(qdisc); in generic_random_early_detection_fill_message() 33 assert_se(gred = GRED(qdisc)); in generic_random_early_detection_fill_message() 56 static int generic_random_early_detection_verify(QDisc *qdisc) { in generic_random_early_detection_verify() argument 57 GenericRandomEarlyDetection *gred = GRED(qdisc); in generic_random_early_detection_verify() 63 qdisc->section->filename, qdisc->section->line); in generic_random_early_detection_verify() 80 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_generic_random_early_detection_u32() [all …]
|
D | ets.c | 16 static int enhanced_transmission_selection_fill_message(Link *link, QDisc *qdisc, sd_netlink_messag… in enhanced_transmission_selection_fill_message() argument 21 assert(qdisc); in enhanced_transmission_selection_fill_message() 24 assert_se(ets = ETS(qdisc)); in enhanced_transmission_selection_fill_message() 91 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_ets_u8() 102 r = qdisc_new_static(QDISC_KIND_ETS, network, filename, section_line, &qdisc); in config_parse_ets_u8() 111 ets = ETS(qdisc); in config_parse_ets_u8() 122 qdisc = NULL; in config_parse_ets_u8() 141 qdisc = NULL; in config_parse_ets_u8() 158 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_ets_quanta() 168 r = qdisc_new_static(QDISC_KIND_ETS, network, filename, section_line, &qdisc); in config_parse_ets_quanta() [all …]
|
D | fq-codel.c | 14 static int fair_queueing_controlled_delay_init(QDisc *qdisc) { in fair_queueing_controlled_delay_init() argument 17 assert(qdisc); in fair_queueing_controlled_delay_init() 19 fqcd = FQ_CODEL(qdisc); in fair_queueing_controlled_delay_init() 28 static int fair_queueing_controlled_delay_fill_message(Link *link, QDisc *qdisc, sd_netlink_message… in fair_queueing_controlled_delay_fill_message() argument 33 assert(qdisc); in fair_queueing_controlled_delay_fill_message() 36 assert_se(fqcd = FQ_CODEL(qdisc)); in fair_queueing_controlled_delay_fill_message() 109 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_fair_queueing_controlled_delay_u32() 120 r = qdisc_new_static(QDISC_KIND_FQ_CODEL, network, filename, section_line, &qdisc); in config_parse_fair_queueing_controlled_delay_u32() 129 fqcd = FQ_CODEL(qdisc); in config_parse_fair_queueing_controlled_delay_u32() 141 TAKE_PTR(qdisc); in config_parse_fair_queueing_controlled_delay_u32() [all …]
|
D | codel.c | 13 static int controlled_delay_init(QDisc *qdisc) { in controlled_delay_init() argument 16 assert(qdisc); in controlled_delay_init() 18 cd = CODEL(qdisc); in controlled_delay_init() 26 static int controlled_delay_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in controlled_delay_fill_message() argument 31 assert(qdisc); in controlled_delay_fill_message() 34 assert_se(cd = CODEL(qdisc)); in controlled_delay_fill_message() 89 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_controlled_delay_u32() 99 r = qdisc_new_static(QDISC_KIND_CODEL, network, filename, section_line, &qdisc); in config_parse_controlled_delay_u32() 108 cd = CODEL(qdisc); in config_parse_controlled_delay_u32() 113 qdisc = NULL; in config_parse_controlled_delay_u32() [all …]
|
D | fifo.c | 13 static int fifo_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in fifo_fill_message() argument 18 assert(qdisc); in fifo_fill_message() 21 switch (qdisc->kind) { in fifo_fill_message() 23 assert_se(fifo = PFIFO(qdisc)); in fifo_fill_message() 26 assert_se(fifo = BFIFO(qdisc)); in fifo_fill_message() 29 assert_se(fifo = PFIFO_HEAD_DROP(qdisc)); in fifo_fill_message() 55 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_pfifo_size() 65 r = qdisc_new_static(ltype, network, filename, section_line, &qdisc); in config_parse_pfifo_size() 74 switch (qdisc->kind) { in config_parse_pfifo_size() 76 fifo = PFIFO(qdisc); in config_parse_pfifo_size() [all …]
|
D | netem.c | 16 static int network_emulator_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in network_emulator_fill_message() argument 21 assert(qdisc); in network_emulator_fill_message() 24 assert_se(ne = NETEM(qdisc)); in network_emulator_fill_message() 63 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_network_emulator_delay() 74 r = qdisc_new_static(QDISC_KIND_NETEM, network, filename, section_line, &qdisc); in config_parse_network_emulator_delay() 83 ne = NETEM(qdisc); in config_parse_network_emulator_delay() 91 TAKE_PTR(qdisc); in config_parse_network_emulator_delay() 108 TAKE_PTR(qdisc); in config_parse_network_emulator_delay() 125 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_network_emulator_rate() 136 r = qdisc_new_static(QDISC_KIND_NETEM, network, filename, section_line, &qdisc); in config_parse_network_emulator_rate() [all …]
|
D | teql.c | 8 static int trivial_link_equalizer_verify(QDisc *qdisc) { in trivial_link_equalizer_verify() argument 12 teql = TEQL(ASSERT_PTR(qdisc)); in trivial_link_equalizer_verify() 17 return free_and_replace(qdisc->tca_kind, tca_kind); in trivial_link_equalizer_verify() 37 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_trivial_link_equalizer_id() 48 r = qdisc_new_static(QDISC_KIND_TEQL, network, filename, section_line, &qdisc); in config_parse_trivial_link_equalizer_id() 57 teql = TEQL(qdisc); in config_parse_trivial_link_equalizer_id() 62 TAKE_PTR(qdisc); in config_parse_trivial_link_equalizer_id() 80 TAKE_PTR(qdisc); in config_parse_trivial_link_equalizer_id()
|
D | sfq.c | 14 static int stochastic_fairness_queueing_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *… in stochastic_fairness_queueing_fill_message() argument 19 assert(qdisc); in stochastic_fairness_queueing_fill_message() 22 assert_se(sfq = SFQ(qdisc)); in stochastic_fairness_queueing_fill_message() 47 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_stochastic_fairness_queueing_perturb_period() 57 r = qdisc_new_static(QDISC_KIND_SFQ, network, filename, section_line, &qdisc); in config_parse_stochastic_fairness_queueing_perturb_period() 66 sfq = SFQ(qdisc); in config_parse_stochastic_fairness_queueing_perturb_period() 71 TAKE_PTR(qdisc); in config_parse_stochastic_fairness_queueing_perturb_period() 83 TAKE_PTR(qdisc); in config_parse_stochastic_fairness_queueing_perturb_period()
|
D | hhf.c | 14 static int heavy_hitter_filter_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in heavy_hitter_filter_fill_message() argument 19 assert(qdisc); in heavy_hitter_filter_fill_message() 22 assert_se(hhf = HHF(qdisc)); in heavy_hitter_filter_fill_message() 53 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_heavy_hitter_filter_packet_limit() 63 r = qdisc_new_static(QDISC_KIND_HHF, network, filename, section_line, &qdisc); in config_parse_heavy_hitter_filter_packet_limit() 72 hhf = HHF(qdisc); in config_parse_heavy_hitter_filter_packet_limit() 77 TAKE_PTR(qdisc); in config_parse_heavy_hitter_filter_packet_limit() 89 TAKE_PTR(qdisc); in config_parse_heavy_hitter_filter_packet_limit()
|
D | pie.c | 13 static int pie_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in pie_fill_message() argument 18 assert(qdisc); in pie_fill_message() 21 assert_se(pie = PIE(qdisc)); in pie_fill_message() 52 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_pie_packet_limit() 62 r = qdisc_new_static(QDISC_KIND_PIE, network, filename, section_line, &qdisc); in config_parse_pie_packet_limit() 71 pie = PIE(qdisc); in config_parse_pie_packet_limit() 76 TAKE_PTR(qdisc); in config_parse_pie_packet_limit() 88 TAKE_PTR(qdisc); in config_parse_pie_packet_limit()
|
D | fq-pie.c | 13 static int fq_pie_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in fq_pie_fill_message() argument 18 assert(qdisc); in fq_pie_fill_message() 21 assert_se(fq_pie = FQ_PIE(qdisc)); in fq_pie_fill_message() 52 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_fq_pie_packet_limit() 63 r = qdisc_new_static(QDISC_KIND_FQ_PIE, network, filename, section_line, &qdisc); in config_parse_fq_pie_packet_limit() 70 fq_pie = FQ_PIE(qdisc); in config_parse_fq_pie_packet_limit() 75 qdisc = NULL; in config_parse_fq_pie_packet_limit() 94 qdisc = NULL; in config_parse_fq_pie_packet_limit()
|
D | sfb.c | 14 static int stochastic_fair_blue_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in stochastic_fair_blue_fill_message() argument 19 assert(qdisc); in stochastic_fair_blue_fill_message() 22 assert_se(sfb = SFB(qdisc)); in stochastic_fair_blue_fill_message() 63 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_stochastic_fair_blue_u32() 73 r = qdisc_new_static(QDISC_KIND_SFB, network, filename, section_line, &qdisc); in config_parse_stochastic_fair_blue_u32() 82 sfb = SFB(qdisc); in config_parse_stochastic_fair_blue_u32() 87 TAKE_PTR(qdisc); in config_parse_stochastic_fair_blue_u32() 99 TAKE_PTR(qdisc); in config_parse_stochastic_fair_blue_u32()
|
D | htb.c | 18 static int hierarchy_token_bucket_fill_message(Link *link, QDisc *qdisc, sd_netlink_message *req) { in hierarchy_token_bucket_fill_message() argument 23 assert(qdisc); in hierarchy_token_bucket_fill_message() 26 assert_se(htb = HTB(qdisc)); in hierarchy_token_bucket_fill_message() 60 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_hierarchy_token_bucket_default_class() 70 r = qdisc_new_static(QDISC_KIND_HTB, network, filename, section_line, &qdisc); in config_parse_hierarchy_token_bucket_default_class() 79 htb = HTB(qdisc); in config_parse_hierarchy_token_bucket_default_class() 84 TAKE_PTR(qdisc); in config_parse_hierarchy_token_bucket_default_class() 96 TAKE_PTR(qdisc); in config_parse_hierarchy_token_bucket_default_class() 113 _cleanup_(qdisc_free_or_set_invalidp) QDisc *qdisc = NULL; in config_parse_hierarchy_token_bucket_u32() 123 r = qdisc_new_static(QDISC_KIND_HTB, network, filename, section_line, &qdisc); in config_parse_hierarchy_token_bucket_u32() [all …]
|
D | qdisc.h | 56 int (*init)(QDisc *qdisc); 57 int (*fill_message)(Link *link, QDisc *qdisc, sd_netlink_message *m); 58 int (*verify)(QDisc *qdisc); 74 DEFINE_NETWORK_CONFIG_STATE_FUNCTIONS(QDisc, qdisc); 76 QDisc* qdisc_free(QDisc *qdisc); 79 int link_find_qdisc(Link *link, uint32_t handle, uint32_t parent, const char *kind, QDisc **qdisc); 81 int link_request_qdisc(Link *link, QDisc *qdisc);
|
D | tc.c | 12 QDisc *qdisc; in link_request_traffic_control() local 20 HASHMAP_FOREACH(qdisc, link->network->qdiscs_by_section) { in link_request_traffic_control() 21 r = link_request_qdisc(link, qdisc); in link_request_traffic_control()
|
/systemd-251/src/network/ |
D | networkctl.c | 279 char *qdisc; member 369 free(array[i].qdisc); in link_info_array_free() 492 const char *name, *qdisc; in decode_link() local 576 r = sd_netlink_message_read_string(m, IFLA_QDISC, &qdisc); in decode_link() 578 info->qdisc = strdup(qdisc); in decode_link() 579 if (!info->qdisc) in decode_link() 1740 if (info->qdisc) { in link_status_one() 1744 TABLE_STRING, info->qdisc); in link_status_one()
|
D | meson.build | 176 'tc/qdisc.c', 177 'tc/qdisc.h',
|
D | networkd-network-gperf.gperf | 35 #include "qdisc.h"
|
/systemd-251/ |
D | NEWS | 3397 [HierarchyTokenBucketClass] sections. Similar the "pfifo" qdisc may 3927 (TBF) parameters in its qdisc configuration support. Similarly,
|