diff options
Diffstat (limited to 'net/sched/sch_cbq.c')
-rw-r--r-- | net/sched/sch_cbq.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index be98a01253e9..dcd9c31dc399 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/etherdevice.h> | 29 | #include <linux/etherdevice.h> |
30 | #include <linux/notifier.h> | 30 | #include <linux/notifier.h> |
31 | #include <net/ip.h> | 31 | #include <net/ip.h> |
32 | #include <net/netlink.h> | ||
32 | #include <net/route.h> | 33 | #include <net/route.h> |
33 | #include <linux/skbuff.h> | 34 | #include <linux/skbuff.h> |
34 | #include <net/sock.h> | 35 | #include <net/sock.h> |
@@ -1471,7 +1472,7 @@ static __inline__ int cbq_dump_rate(struct sk_buff *skb, struct cbq_class *cl) | |||
1471 | return skb->len; | 1472 | return skb->len; |
1472 | 1473 | ||
1473 | rtattr_failure: | 1474 | rtattr_failure: |
1474 | skb_trim(skb, b - skb->data); | 1475 | nlmsg_trim(skb, b); |
1475 | return -1; | 1476 | return -1; |
1476 | } | 1477 | } |
1477 | 1478 | ||
@@ -1496,7 +1497,7 @@ static __inline__ int cbq_dump_lss(struct sk_buff *skb, struct cbq_class *cl) | |||
1496 | return skb->len; | 1497 | return skb->len; |
1497 | 1498 | ||
1498 | rtattr_failure: | 1499 | rtattr_failure: |
1499 | skb_trim(skb, b - skb->data); | 1500 | nlmsg_trim(skb, b); |
1500 | return -1; | 1501 | return -1; |
1501 | } | 1502 | } |
1502 | 1503 | ||
@@ -1514,7 +1515,7 @@ static __inline__ int cbq_dump_wrr(struct sk_buff *skb, struct cbq_class *cl) | |||
1514 | return skb->len; | 1515 | return skb->len; |
1515 | 1516 | ||
1516 | rtattr_failure: | 1517 | rtattr_failure: |
1517 | skb_trim(skb, b - skb->data); | 1518 | nlmsg_trim(skb, b); |
1518 | return -1; | 1519 | return -1; |
1519 | } | 1520 | } |
1520 | 1521 | ||
@@ -1531,7 +1532,7 @@ static __inline__ int cbq_dump_ovl(struct sk_buff *skb, struct cbq_class *cl) | |||
1531 | return skb->len; | 1532 | return skb->len; |
1532 | 1533 | ||
1533 | rtattr_failure: | 1534 | rtattr_failure: |
1534 | skb_trim(skb, b - skb->data); | 1535 | nlmsg_trim(skb, b); |
1535 | return -1; | 1536 | return -1; |
1536 | } | 1537 | } |
1537 | 1538 | ||
@@ -1549,7 +1550,7 @@ static __inline__ int cbq_dump_fopt(struct sk_buff *skb, struct cbq_class *cl) | |||
1549 | return skb->len; | 1550 | return skb->len; |
1550 | 1551 | ||
1551 | rtattr_failure: | 1552 | rtattr_failure: |
1552 | skb_trim(skb, b - skb->data); | 1553 | nlmsg_trim(skb, b); |
1553 | return -1; | 1554 | return -1; |
1554 | } | 1555 | } |
1555 | 1556 | ||
@@ -1568,7 +1569,7 @@ static __inline__ int cbq_dump_police(struct sk_buff *skb, struct cbq_class *cl) | |||
1568 | return skb->len; | 1569 | return skb->len; |
1569 | 1570 | ||
1570 | rtattr_failure: | 1571 | rtattr_failure: |
1571 | skb_trim(skb, b - skb->data); | 1572 | nlmsg_trim(skb, b); |
1572 | return -1; | 1573 | return -1; |
1573 | } | 1574 | } |
1574 | #endif | 1575 | #endif |
@@ -1601,7 +1602,7 @@ static int cbq_dump(struct Qdisc *sch, struct sk_buff *skb) | |||
1601 | return skb->len; | 1602 | return skb->len; |
1602 | 1603 | ||
1603 | rtattr_failure: | 1604 | rtattr_failure: |
1604 | skb_trim(skb, b - skb->data); | 1605 | nlmsg_trim(skb, b); |
1605 | return -1; | 1606 | return -1; |
1606 | } | 1607 | } |
1607 | 1608 | ||
@@ -1637,7 +1638,7 @@ cbq_dump_class(struct Qdisc *sch, unsigned long arg, | |||
1637 | return skb->len; | 1638 | return skb->len; |
1638 | 1639 | ||
1639 | rtattr_failure: | 1640 | rtattr_failure: |
1640 | skb_trim(skb, b - skb->data); | 1641 | nlmsg_trim(skb, b); |
1641 | return -1; | 1642 | return -1; |
1642 | } | 1643 | } |
1643 | 1644 | ||