Commit 6c8994c3 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller

[PKT_SCHED]: Rename TCQ_F_INGRES to TCQ_F_INGRESS.

This typo annoyned me several times by not showing up in greps.
Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 95fa8274
...@@ -79,7 +79,7 @@ struct Qdisc ...@@ -79,7 +79,7 @@ struct Qdisc
unsigned flags; unsigned flags;
#define TCQ_F_BUILTIN 1 #define TCQ_F_BUILTIN 1
#define TCQ_F_THROTTLED 2 #define TCQ_F_THROTTLED 2
#define TCQ_F_INGRES 4 #define TCQ_F_INGRESS 4
int padded; int padded;
struct Qdisc_ops *ops; struct Qdisc_ops *ops;
u32 handle; u32 handle;
......
...@@ -308,7 +308,7 @@ dev_graft_qdisc(struct net_device *dev, struct Qdisc *qdisc) ...@@ -308,7 +308,7 @@ dev_graft_qdisc(struct net_device *dev, struct Qdisc *qdisc)
dev_deactivate(dev); dev_deactivate(dev);
qdisc_lock_tree(dev); qdisc_lock_tree(dev);
if (qdisc && qdisc->flags&TCQ_F_INGRES) { if (qdisc && qdisc->flags&TCQ_F_INGRESS) {
oqdisc = dev->qdisc_ingress; oqdisc = dev->qdisc_ingress;
/* Prune old scheduler */ /* Prune old scheduler */
if (oqdisc && atomic_read(&oqdisc->refcnt) <= 1) { if (oqdisc && atomic_read(&oqdisc->refcnt) <= 1) {
...@@ -357,7 +357,7 @@ int qdisc_graft(struct net_device *dev, struct Qdisc *parent, u32 classid, ...@@ -357,7 +357,7 @@ int qdisc_graft(struct net_device *dev, struct Qdisc *parent, u32 classid,
if (parent == NULL) { if (parent == NULL) {
if (q && q->flags&TCQ_F_INGRES) { if (q && q->flags&TCQ_F_INGRESS) {
*old = dev_graft_qdisc(dev, q); *old = dev_graft_qdisc(dev, q);
} else { } else {
*old = dev_graft_qdisc(dev, new); *old = dev_graft_qdisc(dev, new);
...@@ -430,7 +430,7 @@ qdisc_create(struct net_device *dev, u32 handle, struct rtattr **tca, int *errp) ...@@ -430,7 +430,7 @@ qdisc_create(struct net_device *dev, u32 handle, struct rtattr **tca, int *errp)
skb_queue_head_init(&sch->q); skb_queue_head_init(&sch->q);
if (handle == TC_H_INGRESS) if (handle == TC_H_INGRESS)
sch->flags |= TCQ_F_INGRES; sch->flags |= TCQ_F_INGRESS;
sch->ops = ops; sch->ops = ops;
sch->enqueue = ops->enqueue; sch->enqueue = ops->enqueue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment