aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/act_api.c14
-rw-r--r--net/sched/act_ife.c2
-rw-r--r--net/sched/act_pedit.c5
-rw-r--r--net/sched/act_tunnel_key.c4
-rw-r--r--net/sched/cls_api.c4
-rw-r--r--net/sched/cls_basic.c2
-rw-r--r--net/sched/cls_bpf.c2
-rw-r--r--net/sched/cls_cgroup.c2
-rw-r--r--net/sched/cls_flow.c2
-rw-r--r--net/sched/cls_flower.c8
-rw-r--r--net/sched/cls_fw.c2
-rw-r--r--net/sched/cls_matchall.c2
-rw-r--r--net/sched/cls_route.c2
-rw-r--r--net/sched/cls_rsvp.h2
-rw-r--r--net/sched/cls_tcindex.c2
-rw-r--r--net/sched/cls_u32.c2
-rw-r--r--net/sched/ematch.c4
-rw-r--r--net/sched/sch_api.c2
-rw-r--r--net/sched/sch_atm.c2
-rw-r--r--net/sched/sch_cake.c10
-rw-r--r--net/sched/sch_cbq.c4
-rw-r--r--net/sched/sch_cbs.c2
-rw-r--r--net/sched/sch_choke.c2
-rw-r--r--net/sched/sch_codel.c2
-rw-r--r--net/sched/sch_drr.c2
-rw-r--r--net/sched/sch_dsmark.c4
-rw-r--r--net/sched/sch_etf.c2
-rw-r--r--net/sched/sch_fq.c2
-rw-r--r--net/sched/sch_fq_codel.c2
-rw-r--r--net/sched/sch_gred.c8
-rw-r--r--net/sched/sch_hfsc.c2
-rw-r--r--net/sched/sch_hhf.c2
-rw-r--r--net/sched/sch_htb.c4
-rw-r--r--net/sched/sch_ingress.c2
-rw-r--r--net/sched/sch_mqprio.c4
-rw-r--r--net/sched/sch_netem.c2
-rw-r--r--net/sched/sch_pie.c2
-rw-r--r--net/sched/sch_qfq.c2
-rw-r--r--net/sched/sch_red.c2
-rw-r--r--net/sched/sch_sfb.c2
-rw-r--r--net/sched/sch_taprio.c7
-rw-r--r--net/sched/sch_tbf.c2
42 files changed, 70 insertions, 68 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 5a87e271d35a..641ad7575f24 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -242,7 +242,7 @@ static int tcf_dump_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb,
242 (unsigned long)p->tcfa_tm.lastuse)) 242 (unsigned long)p->tcfa_tm.lastuse))
243 continue; 243 continue;
244 244
245 nest = nla_nest_start(skb, n_i); 245 nest = nla_nest_start_noflag(skb, n_i);
246 if (!nest) { 246 if (!nest) {
247 index--; 247 index--;
248 goto nla_put_failure; 248 goto nla_put_failure;
@@ -299,7 +299,7 @@ static int tcf_del_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb,
299 struct tc_action *p; 299 struct tc_action *p;
300 unsigned long id = 1; 300 unsigned long id = 1;
301 301
302 nest = nla_nest_start(skb, 0); 302 nest = nla_nest_start_noflag(skb, 0);
303 if (nest == NULL) 303 if (nest == NULL)
304 goto nla_put_failure; 304 goto nla_put_failure;
305 if (nla_put_string(skb, TCA_KIND, ops->kind)) 305 if (nla_put_string(skb, TCA_KIND, ops->kind))
@@ -776,7 +776,7 @@ tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
776 } 776 }
777 rcu_read_unlock(); 777 rcu_read_unlock();
778 778
779 nest = nla_nest_start(skb, TCA_OPTIONS); 779 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
780 if (nest == NULL) 780 if (nest == NULL)
781 goto nla_put_failure; 781 goto nla_put_failure;
782 err = tcf_action_dump_old(skb, a, bind, ref); 782 err = tcf_action_dump_old(skb, a, bind, ref);
@@ -800,7 +800,7 @@ int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[],
800 800
801 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) { 801 for (i = 0; i < TCA_ACT_MAX_PRIO && actions[i]; i++) {
802 a = actions[i]; 802 a = actions[i];
803 nest = nla_nest_start(skb, a->order); 803 nest = nla_nest_start_noflag(skb, a->order);
804 if (nest == NULL) 804 if (nest == NULL)
805 goto nla_put_failure; 805 goto nla_put_failure;
806 err = tcf_action_dump_1(skb, a, bind, ref); 806 err = tcf_action_dump_1(skb, a, bind, ref);
@@ -1052,7 +1052,7 @@ static int tca_get_fill(struct sk_buff *skb, struct tc_action *actions[],
1052 t->tca__pad1 = 0; 1052 t->tca__pad1 = 0;
1053 t->tca__pad2 = 0; 1053 t->tca__pad2 = 0;
1054 1054
1055 nest = nla_nest_start(skb, TCA_ACT_TAB); 1055 nest = nla_nest_start_noflag(skb, TCA_ACT_TAB);
1056 if (!nest) 1056 if (!nest)
1057 goto out_nlmsg_trim; 1057 goto out_nlmsg_trim;
1058 1058
@@ -1176,7 +1176,7 @@ static int tca_action_flush(struct net *net, struct nlattr *nla,
1176 t->tca__pad1 = 0; 1176 t->tca__pad1 = 0;
1177 t->tca__pad2 = 0; 1177 t->tca__pad2 = 0;
1178 1178
1179 nest = nla_nest_start(skb, TCA_ACT_TAB); 1179 nest = nla_nest_start_noflag(skb, TCA_ACT_TAB);
1180 if (!nest) { 1180 if (!nest) {
1181 NL_SET_ERR_MSG(extack, "Failed to add new netlink message"); 1181 NL_SET_ERR_MSG(extack, "Failed to add new netlink message");
1182 goto out_module_put; 1182 goto out_module_put;
@@ -1508,7 +1508,7 @@ static int tc_dump_action(struct sk_buff *skb, struct netlink_callback *cb)
1508 if (!count_attr) 1508 if (!count_attr)
1509 goto out_module_put; 1509 goto out_module_put;
1510 1510
1511 nest = nla_nest_start(skb, TCA_ACT_TAB); 1511 nest = nla_nest_start_noflag(skb, TCA_ACT_TAB);
1512 if (nest == NULL) 1512 if (nest == NULL)
1513 goto out_module_put; 1513 goto out_module_put;
1514 1514
diff --git a/net/sched/act_ife.c b/net/sched/act_ife.c
index 31c6ffb6abe7..7a87ce2e5a76 100644
--- a/net/sched/act_ife.c
+++ b/net/sched/act_ife.c
@@ -387,7 +387,7 @@ static int dump_metalist(struct sk_buff *skb, struct tcf_ife_info *ife)
387 if (list_empty(&ife->metalist)) 387 if (list_empty(&ife->metalist))
388 return 0; 388 return 0;
389 389
390 nest = nla_nest_start(skb, TCA_IFE_METALST); 390 nest = nla_nest_start_noflag(skb, TCA_IFE_METALST);
391 if (!nest) 391 if (!nest)
392 goto out_nlmsg_trim; 392 goto out_nlmsg_trim;
393 393
diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c
index 287793abfaf9..ce4b54fa7834 100644
--- a/net/sched/act_pedit.c
+++ b/net/sched/act_pedit.c
@@ -108,14 +108,15 @@ err_out:
108static int tcf_pedit_key_ex_dump(struct sk_buff *skb, 108static int tcf_pedit_key_ex_dump(struct sk_buff *skb,
109 struct tcf_pedit_key_ex *keys_ex, int n) 109 struct tcf_pedit_key_ex *keys_ex, int n)
110{ 110{
111 struct nlattr *keys_start = nla_nest_start(skb, TCA_PEDIT_KEYS_EX); 111 struct nlattr *keys_start = nla_nest_start_noflag(skb,
112 TCA_PEDIT_KEYS_EX);
112 113
113 if (!keys_start) 114 if (!keys_start)
114 goto nla_failure; 115 goto nla_failure;
115 for (; n > 0; n--) { 116 for (; n > 0; n--) {
116 struct nlattr *key_start; 117 struct nlattr *key_start;
117 118
118 key_start = nla_nest_start(skb, TCA_PEDIT_KEY_EX); 119 key_start = nla_nest_start_noflag(skb, TCA_PEDIT_KEY_EX);
119 if (!key_start) 120 if (!key_start)
120 goto nla_failure; 121 goto nla_failure;
121 122
diff --git a/net/sched/act_tunnel_key.c b/net/sched/act_tunnel_key.c
index d5aaf90a3971..45c0c253c7e8 100644
--- a/net/sched/act_tunnel_key.c
+++ b/net/sched/act_tunnel_key.c
@@ -426,7 +426,7 @@ static int tunnel_key_geneve_opts_dump(struct sk_buff *skb,
426 u8 *src = (u8 *)(info + 1); 426 u8 *src = (u8 *)(info + 1);
427 struct nlattr *start; 427 struct nlattr *start;
428 428
429 start = nla_nest_start(skb, TCA_TUNNEL_KEY_ENC_OPTS_GENEVE); 429 start = nla_nest_start_noflag(skb, TCA_TUNNEL_KEY_ENC_OPTS_GENEVE);
430 if (!start) 430 if (!start)
431 return -EMSGSIZE; 431 return -EMSGSIZE;
432 432
@@ -460,7 +460,7 @@ static int tunnel_key_opts_dump(struct sk_buff *skb,
460 if (!info->options_len) 460 if (!info->options_len)
461 return 0; 461 return 0;
462 462
463 start = nla_nest_start(skb, TCA_TUNNEL_KEY_ENC_OPTS); 463 start = nla_nest_start_noflag(skb, TCA_TUNNEL_KEY_ENC_OPTS);
464 if (!start) 464 if (!start)
465 return -EMSGSIZE; 465 return -EMSGSIZE;
466 466
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 9115f053883f..78de717afddf 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -3111,7 +3111,7 @@ int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts)
3111 * tc data even if iproute2 was newer - jhs 3111 * tc data even if iproute2 was newer - jhs
3112 */ 3112 */
3113 if (exts->type != TCA_OLD_COMPAT) { 3113 if (exts->type != TCA_OLD_COMPAT) {
3114 nest = nla_nest_start(skb, exts->action); 3114 nest = nla_nest_start_noflag(skb, exts->action);
3115 if (nest == NULL) 3115 if (nest == NULL)
3116 goto nla_put_failure; 3116 goto nla_put_failure;
3117 3117
@@ -3120,7 +3120,7 @@ int tcf_exts_dump(struct sk_buff *skb, struct tcf_exts *exts)
3120 nla_nest_end(skb, nest); 3120 nla_nest_end(skb, nest);
3121 } else if (exts->police) { 3121 } else if (exts->police) {
3122 struct tc_action *act = tcf_exts_first_act(exts); 3122 struct tc_action *act = tcf_exts_first_act(exts);
3123 nest = nla_nest_start(skb, exts->police); 3123 nest = nla_nest_start_noflag(skb, exts->police);
3124 if (nest == NULL || !act) 3124 if (nest == NULL || !act)
3125 goto nla_put_failure; 3125 goto nla_put_failure;
3126 if (tcf_action_dump_old(skb, act, 0, 0) < 0) 3126 if (tcf_action_dump_old(skb, act, 0, 0) < 0)
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c
index 687b0af67878..dd5fdb62c6df 100644
--- a/net/sched/cls_basic.c
+++ b/net/sched/cls_basic.c
@@ -288,7 +288,7 @@ static int basic_dump(struct net *net, struct tcf_proto *tp, void *fh,
288 288
289 t->tcm_handle = f->handle; 289 t->tcm_handle = f->handle;
290 290
291 nest = nla_nest_start(skb, TCA_OPTIONS); 291 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
292 if (nest == NULL) 292 if (nest == NULL)
293 goto nla_put_failure; 293 goto nla_put_failure;
294 294
diff --git a/net/sched/cls_bpf.c b/net/sched/cls_bpf.c
index b4ac58039cb1..6fd569c5a036 100644
--- a/net/sched/cls_bpf.c
+++ b/net/sched/cls_bpf.c
@@ -591,7 +591,7 @@ static int cls_bpf_dump(struct net *net, struct tcf_proto *tp, void *fh,
591 591
592 cls_bpf_offload_update_stats(tp, prog); 592 cls_bpf_offload_update_stats(tp, prog);
593 593
594 nest = nla_nest_start(skb, TCA_OPTIONS); 594 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
595 if (nest == NULL) 595 if (nest == NULL)
596 goto nla_put_failure; 596 goto nla_put_failure;
597 597
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c
index 4c1567854f95..b680dd684282 100644
--- a/net/sched/cls_cgroup.c
+++ b/net/sched/cls_cgroup.c
@@ -176,7 +176,7 @@ static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, void *fh,
176 176
177 t->tcm_handle = head->handle; 177 t->tcm_handle = head->handle;
178 178
179 nest = nla_nest_start(skb, TCA_OPTIONS); 179 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
180 if (nest == NULL) 180 if (nest == NULL)
181 goto nla_put_failure; 181 goto nla_put_failure;
182 182
diff --git a/net/sched/cls_flow.c b/net/sched/cls_flow.c
index eece1ee26930..cb29fe7d5ed3 100644
--- a/net/sched/cls_flow.c
+++ b/net/sched/cls_flow.c
@@ -629,7 +629,7 @@ static int flow_dump(struct net *net, struct tcf_proto *tp, void *fh,
629 629
630 t->tcm_handle = f->handle; 630 t->tcm_handle = f->handle;
631 631
632 nest = nla_nest_start(skb, TCA_OPTIONS); 632 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
633 if (nest == NULL) 633 if (nest == NULL)
634 goto nla_put_failure; 634 goto nla_put_failure;
635 635
diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c
index 0d8968803e98..8d4f7a672f14 100644
--- a/net/sched/cls_flower.c
+++ b/net/sched/cls_flower.c
@@ -2051,7 +2051,7 @@ static int fl_dump_key_geneve_opt(struct sk_buff *skb,
2051 struct nlattr *nest; 2051 struct nlattr *nest;
2052 int opt_off = 0; 2052 int opt_off = 0;
2053 2053
2054 nest = nla_nest_start(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE); 2054 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE);
2055 if (!nest) 2055 if (!nest)
2056 goto nla_put_failure; 2056 goto nla_put_failure;
2057 2057
@@ -2087,7 +2087,7 @@ static int fl_dump_key_options(struct sk_buff *skb, int enc_opt_type,
2087 if (!enc_opts->len) 2087 if (!enc_opts->len)
2088 return 0; 2088 return 0;
2089 2089
2090 nest = nla_nest_start(skb, enc_opt_type); 2090 nest = nla_nest_start_noflag(skb, enc_opt_type);
2091 if (!nest) 2091 if (!nest)
2092 goto nla_put_failure; 2092 goto nla_put_failure;
2093 2093
@@ -2333,7 +2333,7 @@ static int fl_dump(struct net *net, struct tcf_proto *tp, void *fh,
2333 2333
2334 t->tcm_handle = f->handle; 2334 t->tcm_handle = f->handle;
2335 2335
2336 nest = nla_nest_start(skb, TCA_OPTIONS); 2336 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
2337 if (!nest) 2337 if (!nest)
2338 goto nla_put_failure; 2338 goto nla_put_failure;
2339 2339
@@ -2384,7 +2384,7 @@ static int fl_tmplt_dump(struct sk_buff *skb, struct net *net, void *tmplt_priv)
2384 struct fl_flow_key *key, *mask; 2384 struct fl_flow_key *key, *mask;
2385 struct nlattr *nest; 2385 struct nlattr *nest;
2386 2386
2387 nest = nla_nest_start(skb, TCA_OPTIONS); 2387 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
2388 if (!nest) 2388 if (!nest)
2389 goto nla_put_failure; 2389 goto nla_put_failure;
2390 2390
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c
index ad036b00427d..3fcc1d51b9d7 100644
--- a/net/sched/cls_fw.c
+++ b/net/sched/cls_fw.c
@@ -402,7 +402,7 @@ static int fw_dump(struct net *net, struct tcf_proto *tp, void *fh,
402 if (!f->res.classid && !tcf_exts_has_actions(&f->exts)) 402 if (!f->res.classid && !tcf_exts_has_actions(&f->exts))
403 return skb->len; 403 return skb->len;
404 404
405 nest = nla_nest_start(skb, TCA_OPTIONS); 405 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
406 if (nest == NULL) 406 if (nest == NULL)
407 goto nla_put_failure; 407 goto nla_put_failure;
408 408
diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c
index a13bc351a414..d54fa8e11b9e 100644
--- a/net/sched/cls_matchall.c
+++ b/net/sched/cls_matchall.c
@@ -303,7 +303,7 @@ static int mall_dump(struct net *net, struct tcf_proto *tp, void *fh,
303 303
304 t->tcm_handle = head->handle; 304 t->tcm_handle = head->handle;
305 305
306 nest = nla_nest_start(skb, TCA_OPTIONS); 306 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
307 if (!nest) 307 if (!nest)
308 goto nla_put_failure; 308 goto nla_put_failure;
309 309
diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c
index f006af23b64a..b3b9b151a61d 100644
--- a/net/sched/cls_route.c
+++ b/net/sched/cls_route.c
@@ -607,7 +607,7 @@ static int route4_dump(struct net *net, struct tcf_proto *tp, void *fh,
607 607
608 t->tcm_handle = f->handle; 608 t->tcm_handle = f->handle;
609 609
610 nest = nla_nest_start(skb, TCA_OPTIONS); 610 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
611 if (nest == NULL) 611 if (nest == NULL)
612 goto nla_put_failure; 612 goto nla_put_failure;
613 613
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h
index 0719a21d9c41..fa059cf934a6 100644
--- a/net/sched/cls_rsvp.h
+++ b/net/sched/cls_rsvp.h
@@ -706,7 +706,7 @@ static int rsvp_dump(struct net *net, struct tcf_proto *tp, void *fh,
706 706
707 t->tcm_handle = f->handle; 707 t->tcm_handle = f->handle;
708 708
709 nest = nla_nest_start(skb, TCA_OPTIONS); 709 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
710 if (nest == NULL) 710 if (nest == NULL)
711 goto nla_put_failure; 711 goto nla_put_failure;
712 712
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c
index 24e0a62a65cc..1a2e7d5a8776 100644
--- a/net/sched/cls_tcindex.c
+++ b/net/sched/cls_tcindex.c
@@ -601,7 +601,7 @@ static int tcindex_dump(struct net *net, struct tcf_proto *tp, void *fh,
601 tp, fh, skb, t, p, r); 601 tp, fh, skb, t, p, r);
602 pr_debug("p->perfect %p p->h %p\n", p->perfect, p->h); 602 pr_debug("p->perfect %p p->h %p\n", p->perfect, p->h);
603 603
604 nest = nla_nest_start(skb, TCA_OPTIONS); 604 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
605 if (nest == NULL) 605 if (nest == NULL)
606 goto nla_put_failure; 606 goto nla_put_failure;
607 607
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c
index 48e76a3acf8a..499477058b2d 100644
--- a/net/sched/cls_u32.c
+++ b/net/sched/cls_u32.c
@@ -1294,7 +1294,7 @@ static int u32_dump(struct net *net, struct tcf_proto *tp, void *fh,
1294 1294
1295 t->tcm_handle = n->handle; 1295 t->tcm_handle = n->handle;
1296 1296
1297 nest = nla_nest_start(skb, TCA_OPTIONS); 1297 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
1298 if (nest == NULL) 1298 if (nest == NULL)
1299 goto nla_put_failure; 1299 goto nla_put_failure;
1300 1300
diff --git a/net/sched/ematch.c b/net/sched/ematch.c
index 1331a4c2d8ff..6f2d6a761dbe 100644
--- a/net/sched/ematch.c
+++ b/net/sched/ematch.c
@@ -440,14 +440,14 @@ int tcf_em_tree_dump(struct sk_buff *skb, struct tcf_ematch_tree *tree, int tlv)
440 struct nlattr *top_start; 440 struct nlattr *top_start;
441 struct nlattr *list_start; 441 struct nlattr *list_start;
442 442
443 top_start = nla_nest_start(skb, tlv); 443 top_start = nla_nest_start_noflag(skb, tlv);
444 if (top_start == NULL) 444 if (top_start == NULL)
445 goto nla_put_failure; 445 goto nla_put_failure;
446 446
447 if (nla_put(skb, TCA_EMATCH_TREE_HDR, sizeof(tree->hdr), &tree->hdr)) 447 if (nla_put(skb, TCA_EMATCH_TREE_HDR, sizeof(tree->hdr), &tree->hdr))
448 goto nla_put_failure; 448 goto nla_put_failure;
449 449
450 list_start = nla_nest_start(skb, TCA_EMATCH_TREE_LIST); 450 list_start = nla_nest_start_noflag(skb, TCA_EMATCH_TREE_LIST);
451 if (list_start == NULL) 451 if (list_start == NULL)
452 goto nla_put_failure; 452 goto nla_put_failure;
453 453
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index c126b9f78d6e..6c81b22d214f 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -542,7 +542,7 @@ static int qdisc_dump_stab(struct sk_buff *skb, struct qdisc_size_table *stab)
542{ 542{
543 struct nlattr *nest; 543 struct nlattr *nest;
544 544
545 nest = nla_nest_start(skb, TCA_STAB); 545 nest = nla_nest_start_noflag(skb, TCA_STAB);
546 if (nest == NULL) 546 if (nest == NULL)
547 goto nla_put_failure; 547 goto nla_put_failure;
548 if (nla_put(skb, TCA_STAB_BASE, sizeof(stab->szopts), &stab->szopts)) 548 if (nla_put(skb, TCA_STAB_BASE, sizeof(stab->szopts), &stab->szopts))
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c
index d714d3747bcb..c36aa57eb4af 100644
--- a/net/sched/sch_atm.c
+++ b/net/sched/sch_atm.c
@@ -609,7 +609,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl,
609 tcm->tcm_handle = flow->common.classid; 609 tcm->tcm_handle = flow->common.classid;
610 tcm->tcm_info = flow->q->handle; 610 tcm->tcm_info = flow->q->handle;
611 611
612 nest = nla_nest_start(skb, TCA_OPTIONS); 612 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
613 if (nest == NULL) 613 if (nest == NULL)
614 goto nla_put_failure; 614 goto nla_put_failure;
615 615
diff --git a/net/sched/sch_cake.c b/net/sched/sch_cake.c
index 259d97bc2abd..50db72fe44de 100644
--- a/net/sched/sch_cake.c
+++ b/net/sched/sch_cake.c
@@ -2735,7 +2735,7 @@ static int cake_dump(struct Qdisc *sch, struct sk_buff *skb)
2735 struct cake_sched_data *q = qdisc_priv(sch); 2735 struct cake_sched_data *q = qdisc_priv(sch);
2736 struct nlattr *opts; 2736 struct nlattr *opts;
2737 2737
2738 opts = nla_nest_start(skb, TCA_OPTIONS); 2738 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
2739 if (!opts) 2739 if (!opts)
2740 goto nla_put_failure; 2740 goto nla_put_failure;
2741 2741
@@ -2806,7 +2806,7 @@ nla_put_failure:
2806 2806
2807static int cake_dump_stats(struct Qdisc *sch, struct gnet_dump *d) 2807static int cake_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
2808{ 2808{
2809 struct nlattr *stats = nla_nest_start(d->skb, TCA_STATS_APP); 2809 struct nlattr *stats = nla_nest_start_noflag(d->skb, TCA_STATS_APP);
2810 struct cake_sched_data *q = qdisc_priv(sch); 2810 struct cake_sched_data *q = qdisc_priv(sch);
2811 struct nlattr *tstats, *ts; 2811 struct nlattr *tstats, *ts;
2812 int i; 2812 int i;
@@ -2836,7 +2836,7 @@ static int cake_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
2836#undef PUT_STAT_U32 2836#undef PUT_STAT_U32
2837#undef PUT_STAT_U64 2837#undef PUT_STAT_U64
2838 2838
2839 tstats = nla_nest_start(d->skb, TCA_CAKE_STATS_TIN_STATS); 2839 tstats = nla_nest_start_noflag(d->skb, TCA_CAKE_STATS_TIN_STATS);
2840 if (!tstats) 2840 if (!tstats)
2841 goto nla_put_failure; 2841 goto nla_put_failure;
2842 2842
@@ -2853,7 +2853,7 @@ static int cake_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
2853 for (i = 0; i < q->tin_cnt; i++) { 2853 for (i = 0; i < q->tin_cnt; i++) {
2854 struct cake_tin_data *b = &q->tins[q->tin_order[i]]; 2854 struct cake_tin_data *b = &q->tins[q->tin_order[i]];
2855 2855
2856 ts = nla_nest_start(d->skb, i + 1); 2856 ts = nla_nest_start_noflag(d->skb, i + 1);
2857 if (!ts) 2857 if (!ts)
2858 goto nla_put_failure; 2858 goto nla_put_failure;
2859 2859
@@ -2973,7 +2973,7 @@ static int cake_dump_class_stats(struct Qdisc *sch, unsigned long cl,
2973 if (flow) { 2973 if (flow) {
2974 ktime_t now = ktime_get(); 2974 ktime_t now = ktime_get();
2975 2975
2976 stats = nla_nest_start(d->skb, TCA_STATS_APP); 2976 stats = nla_nest_start_noflag(d->skb, TCA_STATS_APP);
2977 if (!stats) 2977 if (!stats)
2978 return -1; 2978 return -1;
2979 2979
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c
index 114b9048ea7e..243bce4b888b 100644
--- a/net/sched/sch_cbq.c
+++ b/net/sched/sch_cbq.c
@@ -1305,7 +1305,7 @@ static int cbq_dump(struct Qdisc *sch, struct sk_buff *skb)
1305 struct cbq_sched_data *q = qdisc_priv(sch); 1305 struct cbq_sched_data *q = qdisc_priv(sch);
1306 struct nlattr *nest; 1306 struct nlattr *nest;
1307 1307
1308 nest = nla_nest_start(skb, TCA_OPTIONS); 1308 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
1309 if (nest == NULL) 1309 if (nest == NULL)
1310 goto nla_put_failure; 1310 goto nla_put_failure;
1311 if (cbq_dump_attr(skb, &q->link) < 0) 1311 if (cbq_dump_attr(skb, &q->link) < 0)
@@ -1340,7 +1340,7 @@ cbq_dump_class(struct Qdisc *sch, unsigned long arg,
1340 tcm->tcm_handle = cl->common.classid; 1340 tcm->tcm_handle = cl->common.classid;
1341 tcm->tcm_info = cl->q->handle; 1341 tcm->tcm_info = cl->q->handle;
1342 1342
1343 nest = nla_nest_start(skb, TCA_OPTIONS); 1343 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
1344 if (nest == NULL) 1344 if (nest == NULL)
1345 goto nla_put_failure; 1345 goto nla_put_failure;
1346 if (cbq_dump_attr(skb, cl) < 0) 1346 if (cbq_dump_attr(skb, cl) < 0)
diff --git a/net/sched/sch_cbs.c b/net/sched/sch_cbs.c
index f68fd7a0e038..adffc6d68c06 100644
--- a/net/sched/sch_cbs.c
+++ b/net/sched/sch_cbs.c
@@ -449,7 +449,7 @@ static int cbs_dump(struct Qdisc *sch, struct sk_buff *skb)
449 struct tc_cbs_qopt opt = { }; 449 struct tc_cbs_qopt opt = { };
450 struct nlattr *nest; 450 struct nlattr *nest;
451 451
452 nest = nla_nest_start(skb, TCA_OPTIONS); 452 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
453 if (!nest) 453 if (!nest)
454 goto nla_put_failure; 454 goto nla_put_failure;
455 455
diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.c
index eafc0d17d174..eda21dc94bde 100644
--- a/net/sched/sch_choke.c
+++ b/net/sched/sch_choke.c
@@ -452,7 +452,7 @@ static int choke_dump(struct Qdisc *sch, struct sk_buff *skb)
452 .Scell_log = q->parms.Scell_log, 452 .Scell_log = q->parms.Scell_log,
453 }; 453 };
454 454
455 opts = nla_nest_start(skb, TCA_OPTIONS); 455 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
456 if (opts == NULL) 456 if (opts == NULL)
457 goto nla_put_failure; 457 goto nla_put_failure;
458 458
diff --git a/net/sched/sch_codel.c b/net/sched/sch_codel.c
index 17cd81f84b5d..60ac4e61ce3a 100644
--- a/net/sched/sch_codel.c
+++ b/net/sched/sch_codel.c
@@ -217,7 +217,7 @@ static int codel_dump(struct Qdisc *sch, struct sk_buff *skb)
217 struct codel_sched_data *q = qdisc_priv(sch); 217 struct codel_sched_data *q = qdisc_priv(sch);
218 struct nlattr *opts; 218 struct nlattr *opts;
219 219
220 opts = nla_nest_start(skb, TCA_OPTIONS); 220 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
221 if (opts == NULL) 221 if (opts == NULL)
222 goto nla_put_failure; 222 goto nla_put_failure;
223 223
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c
index 430df9a55ec4..022db73fd5a9 100644
--- a/net/sched/sch_drr.c
+++ b/net/sched/sch_drr.c
@@ -244,7 +244,7 @@ static int drr_dump_class(struct Qdisc *sch, unsigned long arg,
244 tcm->tcm_handle = cl->common.classid; 244 tcm->tcm_handle = cl->common.classid;
245 tcm->tcm_info = cl->qdisc->handle; 245 tcm->tcm_info = cl->qdisc->handle;
246 246
247 nest = nla_nest_start(skb, TCA_OPTIONS); 247 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
248 if (nest == NULL) 248 if (nest == NULL)
249 goto nla_put_failure; 249 goto nla_put_failure;
250 if (nla_put_u32(skb, TCA_DRR_QUANTUM, cl->quantum)) 250 if (nla_put_u32(skb, TCA_DRR_QUANTUM, cl->quantum))
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c
index 42471464ded3..cdf744e710f1 100644
--- a/net/sched/sch_dsmark.c
+++ b/net/sched/sch_dsmark.c
@@ -432,7 +432,7 @@ static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl,
432 tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl - 1); 432 tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl - 1);
433 tcm->tcm_info = p->q->handle; 433 tcm->tcm_info = p->q->handle;
434 434
435 opts = nla_nest_start(skb, TCA_OPTIONS); 435 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
436 if (opts == NULL) 436 if (opts == NULL)
437 goto nla_put_failure; 437 goto nla_put_failure;
438 if (nla_put_u8(skb, TCA_DSMARK_MASK, p->mv[cl - 1].mask) || 438 if (nla_put_u8(skb, TCA_DSMARK_MASK, p->mv[cl - 1].mask) ||
@@ -451,7 +451,7 @@ static int dsmark_dump(struct Qdisc *sch, struct sk_buff *skb)
451 struct dsmark_qdisc_data *p = qdisc_priv(sch); 451 struct dsmark_qdisc_data *p = qdisc_priv(sch);
452 struct nlattr *opts = NULL; 452 struct nlattr *opts = NULL;
453 453
454 opts = nla_nest_start(skb, TCA_OPTIONS); 454 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
455 if (opts == NULL) 455 if (opts == NULL)
456 goto nla_put_failure; 456 goto nla_put_failure;
457 if (nla_put_u16(skb, TCA_DSMARK_INDICES, p->indices)) 457 if (nla_put_u16(skb, TCA_DSMARK_INDICES, p->indices))
diff --git a/net/sched/sch_etf.c b/net/sched/sch_etf.c
index 1150f22983df..67107caa287c 100644
--- a/net/sched/sch_etf.c
+++ b/net/sched/sch_etf.c
@@ -460,7 +460,7 @@ static int etf_dump(struct Qdisc *sch, struct sk_buff *skb)
460 struct tc_etf_qopt opt = { }; 460 struct tc_etf_qopt opt = { };
461 struct nlattr *nest; 461 struct nlattr *nest;
462 462
463 nest = nla_nest_start(skb, TCA_OPTIONS); 463 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
464 if (!nest) 464 if (!nest)
465 goto nla_put_failure; 465 goto nla_put_failure;
466 466
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c
index 1a662f2bb7bb..5ca370e78d3a 100644
--- a/net/sched/sch_fq.c
+++ b/net/sched/sch_fq.c
@@ -823,7 +823,7 @@ static int fq_dump(struct Qdisc *sch, struct sk_buff *skb)
823 u64 ce_threshold = q->ce_threshold; 823 u64 ce_threshold = q->ce_threshold;
824 struct nlattr *opts; 824 struct nlattr *opts;
825 825
826 opts = nla_nest_start(skb, TCA_OPTIONS); 826 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
827 if (opts == NULL) 827 if (opts == NULL)
828 goto nla_put_failure; 828 goto nla_put_failure;
829 829
diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c
index cd04d40c30b6..825a933b019a 100644
--- a/net/sched/sch_fq_codel.c
+++ b/net/sched/sch_fq_codel.c
@@ -527,7 +527,7 @@ static int fq_codel_dump(struct Qdisc *sch, struct sk_buff *skb)
527 struct fq_codel_sched_data *q = qdisc_priv(sch); 527 struct fq_codel_sched_data *q = qdisc_priv(sch);
528 struct nlattr *opts; 528 struct nlattr *opts;
529 529
530 opts = nla_nest_start(skb, TCA_OPTIONS); 530 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
531 if (opts == NULL) 531 if (opts == NULL)
532 goto nla_put_failure; 532 goto nla_put_failure;
533 533
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c
index 234afbf9115b..9bfa15e12d23 100644
--- a/net/sched/sch_gred.c
+++ b/net/sched/sch_gred.c
@@ -772,7 +772,7 @@ static int gred_dump(struct Qdisc *sch, struct sk_buff *skb)
772 if (gred_offload_dump_stats(sch)) 772 if (gred_offload_dump_stats(sch))
773 goto nla_put_failure; 773 goto nla_put_failure;
774 774
775 opts = nla_nest_start(skb, TCA_OPTIONS); 775 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
776 if (opts == NULL) 776 if (opts == NULL)
777 goto nla_put_failure; 777 goto nla_put_failure;
778 if (nla_put(skb, TCA_GRED_DPS, sizeof(sopt), &sopt)) 778 if (nla_put(skb, TCA_GRED_DPS, sizeof(sopt), &sopt))
@@ -790,7 +790,7 @@ static int gred_dump(struct Qdisc *sch, struct sk_buff *skb)
790 goto nla_put_failure; 790 goto nla_put_failure;
791 791
792 /* Old style all-in-one dump of VQs */ 792 /* Old style all-in-one dump of VQs */
793 parms = nla_nest_start(skb, TCA_GRED_PARMS); 793 parms = nla_nest_start_noflag(skb, TCA_GRED_PARMS);
794 if (parms == NULL) 794 if (parms == NULL)
795 goto nla_put_failure; 795 goto nla_put_failure;
796 796
@@ -841,7 +841,7 @@ append_opt:
841 nla_nest_end(skb, parms); 841 nla_nest_end(skb, parms);
842 842
843 /* Dump the VQs again, in more structured way */ 843 /* Dump the VQs again, in more structured way */
844 vqs = nla_nest_start(skb, TCA_GRED_VQ_LIST); 844 vqs = nla_nest_start_noflag(skb, TCA_GRED_VQ_LIST);
845 if (!vqs) 845 if (!vqs)
846 goto nla_put_failure; 846 goto nla_put_failure;
847 847
@@ -852,7 +852,7 @@ append_opt:
852 if (!q) 852 if (!q)
853 continue; 853 continue;
854 854
855 vq = nla_nest_start(skb, TCA_GRED_VQ_ENTRY); 855 vq = nla_nest_start_noflag(skb, TCA_GRED_VQ_ENTRY);
856 if (!vq) 856 if (!vq)
857 goto nla_put_failure; 857 goto nla_put_failure;
858 858
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index d2ab463f22ae..97d2fb91c39f 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1300,7 +1300,7 @@ hfsc_dump_class(struct Qdisc *sch, unsigned long arg, struct sk_buff *skb,
1300 if (cl->level == 0) 1300 if (cl->level == 0)
1301 tcm->tcm_info = cl->qdisc->handle; 1301 tcm->tcm_info = cl->qdisc->handle;
1302 1302
1303 nest = nla_nest_start(skb, TCA_OPTIONS); 1303 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
1304 if (nest == NULL) 1304 if (nest == NULL)
1305 goto nla_put_failure; 1305 goto nla_put_failure;
1306 if (hfsc_dump_curves(skb, cl) < 0) 1306 if (hfsc_dump_curves(skb, cl) < 0)
diff --git a/net/sched/sch_hhf.c b/net/sched/sch_hhf.c
index 9d6a47697406..43bc159c4f7c 100644
--- a/net/sched/sch_hhf.c
+++ b/net/sched/sch_hhf.c
@@ -654,7 +654,7 @@ static int hhf_dump(struct Qdisc *sch, struct sk_buff *skb)
654 struct hhf_sched_data *q = qdisc_priv(sch); 654 struct hhf_sched_data *q = qdisc_priv(sch);
655 struct nlattr *opts; 655 struct nlattr *opts;
656 656
657 opts = nla_nest_start(skb, TCA_OPTIONS); 657 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
658 if (opts == NULL) 658 if (opts == NULL)
659 goto nla_put_failure; 659 goto nla_put_failure;
660 660
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 2f9883b196e8..64010aec5437 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -1057,7 +1057,7 @@ static int htb_dump(struct Qdisc *sch, struct sk_buff *skb)
1057 gopt.defcls = q->defcls; 1057 gopt.defcls = q->defcls;
1058 gopt.debug = 0; 1058 gopt.debug = 0;
1059 1059
1060 nest = nla_nest_start(skb, TCA_OPTIONS); 1060 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
1061 if (nest == NULL) 1061 if (nest == NULL)
1062 goto nla_put_failure; 1062 goto nla_put_failure;
1063 if (nla_put(skb, TCA_HTB_INIT, sizeof(gopt), &gopt) || 1063 if (nla_put(skb, TCA_HTB_INIT, sizeof(gopt), &gopt) ||
@@ -1086,7 +1086,7 @@ static int htb_dump_class(struct Qdisc *sch, unsigned long arg,
1086 if (!cl->level && cl->leaf.q) 1086 if (!cl->level && cl->leaf.q)
1087 tcm->tcm_info = cl->leaf.q->handle; 1087 tcm->tcm_info = cl->leaf.q->handle;
1088 1088
1089 nest = nla_nest_start(skb, TCA_OPTIONS); 1089 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
1090 if (nest == NULL) 1090 if (nest == NULL)
1091 goto nla_put_failure; 1091 goto nla_put_failure;
1092 1092
diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c
index ce3f55259d0d..0bac926b46c7 100644
--- a/net/sched/sch_ingress.c
+++ b/net/sched/sch_ingress.c
@@ -106,7 +106,7 @@ static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb)
106{ 106{
107 struct nlattr *nest; 107 struct nlattr *nest;
108 108
109 nest = nla_nest_start(skb, TCA_OPTIONS); 109 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
110 if (nest == NULL) 110 if (nest == NULL)
111 goto nla_put_failure; 111 goto nla_put_failure;
112 112
diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c
index ea0dc112b38d..7afefed72d35 100644
--- a/net/sched/sch_mqprio.c
+++ b/net/sched/sch_mqprio.c
@@ -349,7 +349,7 @@ static int dump_rates(struct mqprio_sched *priv,
349 int i; 349 int i;
350 350
351 if (priv->flags & TC_MQPRIO_F_MIN_RATE) { 351 if (priv->flags & TC_MQPRIO_F_MIN_RATE) {
352 nest = nla_nest_start(skb, TCA_MQPRIO_MIN_RATE64); 352 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MIN_RATE64);
353 if (!nest) 353 if (!nest)
354 goto nla_put_failure; 354 goto nla_put_failure;
355 355
@@ -363,7 +363,7 @@ static int dump_rates(struct mqprio_sched *priv,
363 } 363 }
364 364
365 if (priv->flags & TC_MQPRIO_F_MAX_RATE) { 365 if (priv->flags & TC_MQPRIO_F_MAX_RATE) {
366 nest = nla_nest_start(skb, TCA_MQPRIO_MAX_RATE64); 366 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MAX_RATE64);
367 if (!nest) 367 if (!nest)
368 goto nla_put_failure; 368 goto nla_put_failure;
369 369
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index cc9d8133afcd..0242c0d4a2d0 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -1079,7 +1079,7 @@ static int dump_loss_model(const struct netem_sched_data *q,
1079{ 1079{
1080 struct nlattr *nest; 1080 struct nlattr *nest;
1081 1081
1082 nest = nla_nest_start(skb, TCA_NETEM_LOSS); 1082 nest = nla_nest_start_noflag(skb, TCA_NETEM_LOSS);
1083 if (nest == NULL) 1083 if (nest == NULL)
1084 goto nla_put_failure; 1084 goto nla_put_failure;
1085 1085
diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c
index 1cc0c7b74aa3..9bf41f4a2312 100644
--- a/net/sched/sch_pie.c
+++ b/net/sched/sch_pie.c
@@ -491,7 +491,7 @@ static int pie_dump(struct Qdisc *sch, struct sk_buff *skb)
491 struct pie_sched_data *q = qdisc_priv(sch); 491 struct pie_sched_data *q = qdisc_priv(sch);
492 struct nlattr *opts; 492 struct nlattr *opts;
493 493
494 opts = nla_nest_start(skb, TCA_OPTIONS); 494 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
495 if (!opts) 495 if (!opts)
496 goto nla_put_failure; 496 goto nla_put_failure;
497 497
diff --git a/net/sched/sch_qfq.c b/net/sched/sch_qfq.c
index 1589364b54da..bab2d4026e8b 100644
--- a/net/sched/sch_qfq.c
+++ b/net/sched/sch_qfq.c
@@ -619,7 +619,7 @@ static int qfq_dump_class(struct Qdisc *sch, unsigned long arg,
619 tcm->tcm_handle = cl->common.classid; 619 tcm->tcm_handle = cl->common.classid;
620 tcm->tcm_info = cl->qdisc->handle; 620 tcm->tcm_info = cl->qdisc->handle;
621 621
622 nest = nla_nest_start(skb, TCA_OPTIONS); 622 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
623 if (nest == NULL) 623 if (nest == NULL)
624 goto nla_put_failure; 624 goto nla_put_failure;
625 if (nla_put_u32(skb, TCA_QFQ_WEIGHT, cl->agg->class_weight) || 625 if (nla_put_u32(skb, TCA_QFQ_WEIGHT, cl->agg->class_weight) ||
diff --git a/net/sched/sch_red.c b/net/sched/sch_red.c
index 4e8c0abf6194..b9f34e057e87 100644
--- a/net/sched/sch_red.c
+++ b/net/sched/sch_red.c
@@ -318,7 +318,7 @@ static int red_dump(struct Qdisc *sch, struct sk_buff *skb)
318 if (err) 318 if (err)
319 goto nla_put_failure; 319 goto nla_put_failure;
320 320
321 opts = nla_nest_start(skb, TCA_OPTIONS); 321 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
322 if (opts == NULL) 322 if (opts == NULL)
323 goto nla_put_failure; 323 goto nla_put_failure;
324 if (nla_put(skb, TCA_RED_PARMS, sizeof(opt), &opt) || 324 if (nla_put(skb, TCA_RED_PARMS, sizeof(opt), &opt) ||
diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c
index 2419fdb75966..f54b00a431a3 100644
--- a/net/sched/sch_sfb.c
+++ b/net/sched/sch_sfb.c
@@ -580,7 +580,7 @@ static int sfb_dump(struct Qdisc *sch, struct sk_buff *skb)
580 }; 580 };
581 581
582 sch->qstats.backlog = q->qdisc->qstats.backlog; 582 sch->qstats.backlog = q->qdisc->qstats.backlog;
583 opts = nla_nest_start(skb, TCA_OPTIONS); 583 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
584 if (opts == NULL) 584 if (opts == NULL)
585 goto nla_put_failure; 585 goto nla_put_failure;
586 if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt)) 586 if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt))
diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c
index df848a36b222..e016ee07dd1f 100644
--- a/net/sched/sch_taprio.c
+++ b/net/sched/sch_taprio.c
@@ -841,7 +841,7 @@ static int dump_entry(struct sk_buff *msg,
841{ 841{
842 struct nlattr *item; 842 struct nlattr *item;
843 843
844 item = nla_nest_start(msg, TCA_TAPRIO_SCHED_ENTRY); 844 item = nla_nest_start_noflag(msg, TCA_TAPRIO_SCHED_ENTRY);
845 if (!item) 845 if (!item)
846 return -ENOSPC; 846 return -ENOSPC;
847 847
@@ -883,7 +883,7 @@ static int taprio_dump(struct Qdisc *sch, struct sk_buff *skb)
883 opt.offset[i] = dev->tc_to_txq[i].offset; 883 opt.offset[i] = dev->tc_to_txq[i].offset;
884 } 884 }
885 885
886 nest = nla_nest_start(skb, TCA_OPTIONS); 886 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
887 if (!nest) 887 if (!nest)
888 return -ENOSPC; 888 return -ENOSPC;
889 889
@@ -897,7 +897,8 @@ static int taprio_dump(struct Qdisc *sch, struct sk_buff *skb)
897 if (nla_put_s32(skb, TCA_TAPRIO_ATTR_SCHED_CLOCKID, q->clockid)) 897 if (nla_put_s32(skb, TCA_TAPRIO_ATTR_SCHED_CLOCKID, q->clockid))
898 goto options_error; 898 goto options_error;
899 899
900 entry_list = nla_nest_start(skb, TCA_TAPRIO_ATTR_SCHED_ENTRY_LIST); 900 entry_list = nla_nest_start_noflag(skb,
901 TCA_TAPRIO_ATTR_SCHED_ENTRY_LIST);
901 if (!entry_list) 902 if (!entry_list)
902 goto options_error; 903 goto options_error;
903 904
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
index f71578dbb9e3..3ae5a29eeab3 100644
--- a/net/sched/sch_tbf.c
+++ b/net/sched/sch_tbf.c
@@ -448,7 +448,7 @@ static int tbf_dump(struct Qdisc *sch, struct sk_buff *skb)
448 struct tc_tbf_qopt opt; 448 struct tc_tbf_qopt opt;
449 449
450 sch->qstats.backlog = q->qdisc->qstats.backlog; 450 sch->qstats.backlog = q->qdisc->qstats.backlog;
451 nest = nla_nest_start(skb, TCA_OPTIONS); 451 nest = nla_nest_start_noflag(skb, TCA_OPTIONS);
452 if (nest == NULL) 452 if (nest == NULL)
453 goto nla_put_failure; 453 goto nla_put_failure;
454 454