• Home
  • Raw
  • Download

Lines Matching refs:qdisc

102 	struct rtnl_qdisc *qdisc;  in qdisc_msg_parser()  local
105 qdisc = rtnl_qdisc_alloc(); in qdisc_msg_parser()
106 if (!qdisc) { in qdisc_msg_parser()
111 qdisc->ce_msgtype = n->nlmsg_type; in qdisc_msg_parser()
113 err = tca_msg_parser(n, (struct rtnl_tca *) qdisc); in qdisc_msg_parser()
117 qops = rtnl_qdisc_lookup_ops(qdisc); in qdisc_msg_parser()
119 err = qops->qo_msg_parser(qdisc); in qdisc_msg_parser()
124 err = pp->pp_cb((struct nl_object *) qdisc, pp); in qdisc_msg_parser()
126 rtnl_qdisc_put(qdisc); in qdisc_msg_parser()
147 static int qdisc_build(struct rtnl_qdisc *qdisc, int type, int flags, in qdisc_build() argument
153 err = tca_build_msg((struct rtnl_tca *) qdisc, type, flags, result); in qdisc_build()
157 qops = rtnl_qdisc_lookup_ops(qdisc); in qdisc_build()
161 opts = qops->qo_get_opts(qdisc); in qdisc_build()
173 err = qops->qo_build_msg(qdisc, *result); in qdisc_build()
201 int rtnl_qdisc_build_add_request(struct rtnl_qdisc *qdisc, int flags, in rtnl_qdisc_build_add_request() argument
204 return qdisc_build(qdisc, RTM_NEWQDISC, NLM_F_CREATE | flags, result); in rtnl_qdisc_build_add_request()
222 int rtnl_qdisc_add(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_add() argument
228 if ((err = rtnl_qdisc_build_add_request(qdisc, flags, &msg)) < 0) in rtnl_qdisc_add()
259 int rtnl_qdisc_build_change_request(struct rtnl_qdisc *qdisc, in rtnl_qdisc_build_change_request() argument
263 return qdisc_build(qdisc, RTM_NEWQDISC, NLM_F_REPLACE, result); in rtnl_qdisc_build_change_request()
278 int rtnl_qdisc_change(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_change() argument
284 if ((err = rtnl_qdisc_build_change_request(qdisc, new, &msg)) < 0) in rtnl_qdisc_change()
314 int rtnl_qdisc_build_delete_request(struct rtnl_qdisc *qdisc, in rtnl_qdisc_build_delete_request() argument
321 if ((qdisc->ce_mask & required) != required) in rtnl_qdisc_build_delete_request()
329 tchdr.tcm_handle = qdisc->q_handle; in rtnl_qdisc_build_delete_request()
330 tchdr.tcm_parent = qdisc->q_parent; in rtnl_qdisc_build_delete_request()
331 tchdr.tcm_ifindex = qdisc->q_ifindex; in rtnl_qdisc_build_delete_request()
352 int rtnl_qdisc_delete(struct nl_sock *sk, struct rtnl_qdisc *qdisc) in rtnl_qdisc_delete() argument
357 if ((err = rtnl_qdisc_build_delete_request(qdisc, &msg)) < 0) in rtnl_qdisc_delete()