summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_prio.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2008-09-02 17:30:27 -0700
committerDavid S. Miller <davem@davemloft.net>2008-09-02 17:30:27 -0700
commit2c10b32bf57db7ec6d4cca4c4aa3d86bacb01c8a (patch)
treedfb1fff234209b64828d9f932a543fd96b0561e2 /net/sched/sch_prio.c
parentb171e19ed08c8ba832e5325fadf1be493f56665d (diff)
downloadblackbird-op-linux-2c10b32bf57db7ec6d4cca4c4aa3d86bacb01c8a.tar.gz
blackbird-op-linux-2c10b32bf57db7ec6d4cca4c4aa3d86bacb01c8a.zip
netlink: Remove compat API for nested attributes
Removes all _nested_compat() functions from the API. The prio qdisc no longer requires them and netem has its own format anyway. Their existance is only confusing. Resend: Also remove the wrapper macro. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_prio.c')
-rw-r--r--net/sched/sch_prio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c
index a6697c686c7f..504a78cdb718 100644
--- a/net/sched/sch_prio.c
+++ b/net/sched/sch_prio.c
@@ -254,16 +254,12 @@ static int prio_dump(struct Qdisc *sch, struct sk_buff *skb)
{
struct prio_sched_data *q = qdisc_priv(sch);
unsigned char *b = skb_tail_pointer(skb);
- struct nlattr *nest;
struct tc_prio_qopt opt;
opt.bands = q->bands;
memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX+1);
- nest = nla_nest_compat_start(skb, TCA_OPTIONS, sizeof(opt), &opt);
- if (nest == NULL)
- goto nla_put_failure;
- nla_nest_compat_end(skb, nest);
+ NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
return skb->len;
OpenPOWER on IntegriCloud