|
@@ -834,7 +834,7 @@ static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid,
|
|
tcm->tcm_parent = clid;
|
|
tcm->tcm_parent = clid;
|
|
tcm->tcm_handle = q->handle;
|
|
tcm->tcm_handle = q->handle;
|
|
tcm->tcm_info = atomic_read(&q->refcnt);
|
|
tcm->tcm_info = atomic_read(&q->refcnt);
|
|
- NLA_PUT(skb, TCA_KIND, IFNAMSIZ, q->ops->id);
|
|
|
|
|
|
+ NLA_PUT_STRING(skb, TCA_KIND, q->ops->id);
|
|
if (q->ops->dump && q->ops->dump(q, skb) < 0)
|
|
if (q->ops->dump && q->ops->dump(q, skb) < 0)
|
|
goto nla_put_failure;
|
|
goto nla_put_failure;
|
|
q->qstats.qlen = q->q.qlen;
|
|
q->qstats.qlen = q->q.qlen;
|
|
@@ -1080,7 +1080,7 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q,
|
|
tcm->tcm_parent = q->handle;
|
|
tcm->tcm_parent = q->handle;
|
|
tcm->tcm_handle = q->handle;
|
|
tcm->tcm_handle = q->handle;
|
|
tcm->tcm_info = 0;
|
|
tcm->tcm_info = 0;
|
|
- NLA_PUT(skb, TCA_KIND, IFNAMSIZ, q->ops->id);
|
|
|
|
|
|
+ NLA_PUT_STRING(skb, TCA_KIND, q->ops->id);
|
|
if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0)
|
|
if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0)
|
|
goto nla_put_failure;
|
|
goto nla_put_failure;
|
|
|
|
|