diff options
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r-- | net/sched/sch_hfsc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 80e6f811e3b..6a762cf781d 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c | |||
@@ -65,6 +65,7 @@ | |||
65 | #include <linux/netdevice.h> | 65 | #include <linux/netdevice.h> |
66 | #include <linux/rtnetlink.h> | 66 | #include <linux/rtnetlink.h> |
67 | #include <linux/pkt_sched.h> | 67 | #include <linux/pkt_sched.h> |
68 | #include <net/netlink.h> | ||
68 | #include <net/pkt_sched.h> | 69 | #include <net/pkt_sched.h> |
69 | #include <net/pkt_cls.h> | 70 | #include <net/pkt_cls.h> |
70 | #include <asm/system.h> | 71 | #include <asm/system.h> |
@@ -1378,7 +1379,7 @@ hfsc_dump_class(struct Qdisc *sch, unsigned long arg, struct sk_buff *skb, | |||
1378 | return skb->len; | 1379 | return skb->len; |
1379 | 1380 | ||
1380 | rtattr_failure: | 1381 | rtattr_failure: |
1381 | skb_trim(skb, b - skb->data); | 1382 | nlmsg_trim(skb, b); |
1382 | return -1; | 1383 | return -1; |
1383 | } | 1384 | } |
1384 | 1385 | ||
@@ -1584,7 +1585,7 @@ hfsc_dump_qdisc(struct Qdisc *sch, struct sk_buff *skb) | |||
1584 | return skb->len; | 1585 | return skb->len; |
1585 | 1586 | ||
1586 | rtattr_failure: | 1587 | rtattr_failure: |
1587 | skb_trim(skb, b - skb->data); | 1588 | nlmsg_trim(skb, b); |
1588 | return -1; | 1589 | return -1; |
1589 | } | 1590 | } |
1590 | 1591 | ||