Lines Matching refs:qdisc
37 static inline struct rtnl_red *red_qdisc(struct rtnl_qdisc *qdisc) in red_qdisc() argument
39 return (struct rtnl_red *) qdisc->q_subdata; in red_qdisc()
42 static inline struct rtnl_red *red_alloc(struct rtnl_qdisc *qdisc) in red_alloc() argument
44 if (!qdisc->q_subdata) in red_alloc()
45 qdisc->q_subdata = calloc(1, sizeof(struct rtnl_red)); in red_alloc()
47 return red_qdisc(qdisc); in red_alloc()
54 static int red_msg_parser(struct rtnl_qdisc *qdisc) in red_msg_parser() argument
61 if (!(qdisc->ce_mask & TCA_ATTR_OPTS)) in red_msg_parser()
64 err = tca_parse(tb, TCA_RED_MAX, (struct rtnl_tca *) qdisc, red_policy); in red_msg_parser()
71 red = red_alloc(qdisc); in red_msg_parser()
92 static void red_dump_line(struct rtnl_qdisc *qdisc, struct nl_dump_params *p) in red_dump_line() argument
94 struct rtnl_red *red = red_qdisc(qdisc); in red_dump_line()
101 static void red_dump_details(struct rtnl_qdisc *qdisc, struct nl_dump_params *p) in red_dump_details() argument
103 struct rtnl_red *red = red_qdisc(qdisc); in red_dump_details()
110 static void red_dump_stats(struct rtnl_qdisc *qdisc, struct nl_dump_params *p) in red_dump_stats() argument
112 struct rtnl_red *red = red_qdisc(qdisc); in red_dump_stats()
119 static struct nl_msg *red_get_opts(struct rtnl_qdisc *qdisc) in red_get_opts() argument
124 red = red_qdisc(qdisc); in red_get_opts()
159 int rtnl_red_set_limit(struct rtnl_qdisc *qdisc, int limit) in rtnl_red_set_limit() argument
163 red = red_alloc(qdisc); in rtnl_red_set_limit()
178 int rtnl_red_get_limit(struct rtnl_qdisc *qdisc) in rtnl_red_get_limit() argument
182 red = red_qdisc(qdisc); in rtnl_red_get_limit()