Lines Matching refs:new
841 struct Qdisc *new, struct Qdisc *old, in qdisc_offload_graft_helper() argument
854 if (!err || !new || new == &noop_qdisc) in qdisc_offload_graft_helper()
860 any_qdisc_is_offloaded = new->flags & TCQ_F_OFFLOADED; in qdisc_offload_graft_helper()
870 struct Qdisc *new, struct Qdisc *old, in qdisc_offload_graft_root() argument
875 .handle = new ? new->handle : 0, in qdisc_offload_graft_root()
876 .ingress = (new && new->flags & TCQ_F_INGRESS) || in qdisc_offload_graft_root()
880 qdisc_offload_graft_helper(dev, NULL, new, old, in qdisc_offload_graft_root()
975 struct Qdisc *old, struct Qdisc *new) in qdisc_notify() argument
989 if (new && !tc_qdisc_dump_ignore(new, false)) { in qdisc_notify()
990 if (tc_fill_qdisc(skb, new, clid, portid, n->nlmsg_seq, in qdisc_notify()
1006 struct Qdisc *old, struct Qdisc *new) in notify_and_destroy() argument
1008 if (new || old) in notify_and_destroy()
1009 qdisc_notify(net, skb, n, clid, old, new); in notify_and_destroy()
1039 struct Qdisc *new, struct Qdisc *old, in qdisc_graft() argument
1052 (new && new->flags & TCQ_F_INGRESS)) { in qdisc_graft()
1063 qdisc_offload_graft_root(dev, new, old, extack); in qdisc_graft()
1065 if (new && new->ops->attach) in qdisc_graft()
1071 old = dev_graft_qdisc(dev_queue, new); in qdisc_graft()
1073 if (new && i > 0) in qdisc_graft()
1074 qdisc_refcount_inc(new); in qdisc_graft()
1079 old = dev_graft_qdisc(dev_queue, new); in qdisc_graft()
1085 if (new && !new->ops->attach) in qdisc_graft()
1086 qdisc_refcount_inc(new); in qdisc_graft()
1087 rcu_assign_pointer(dev->qdisc, new ? : &noop_qdisc); in qdisc_graft()
1089 notify_and_destroy(net, skb, n, classid, old, new); in qdisc_graft()
1091 if (new && new->ops->attach) in qdisc_graft()
1092 new->ops->attach(new); in qdisc_graft()
1094 notify_and_destroy(net, skb, n, classid, old, new); in qdisc_graft()
1105 if (new && (new->flags & TCQ_F_NOLOCK) && !(parent->flags & TCQ_F_NOLOCK)) in qdisc_graft()
1106 qdisc_clear_nolock(new); in qdisc_graft()
1117 if (new && new->ops == &noqueue_qdisc_ops) { in qdisc_graft()
1122 err = cops->graft(parent, cl, new, &old, extack); in qdisc_graft()
1125 notify_and_destroy(net, skb, n, classid, old, new); in qdisc_graft()