* [PATCH 2.4] PKT_SCHED: Rename TCQ_F_INGRES to TCQ_F_INGRESS
@ 2004-10-22 23:07 Thomas Graf
2004-10-26 3:26 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Graf @ 2004-10-22 23:07 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
Signed-off-by: Thomas Graf <tgraf@suug.ch>
--- linux-2.4.28-pre4-bk6.orig/include/net/pkt_sched.h 2004-10-22 10:58:23.000000000 +0200
+++ linux-2.4.28-pre4-bk6/include/net/pkt_sched.h 2004-10-23 00:48:08.000000000 +0200
@@ -78,7 +78,7 @@
unsigned flags;
#define TCQ_F_BUILTIN 1
#define TCQ_F_THROTTLED 2
-#define TCQ_F_INGRES 4
+#define TCQ_F_INGRESS 4
struct Qdisc_ops *ops;
u32 handle;
u32 parent;
--- linux-2.4.28-pre4-bk6.orig/net/sched/sch_api.c 2004-10-22 10:58:23.000000000 +0200
+++ linux-2.4.28-pre4-bk6/net/sched/sch_api.c 2004-10-23 00:48:08.000000000 +0200
@@ -307,7 +307,7 @@
write_lock(&qdisc_tree_lock);
spin_lock_bh(&dev->queue_lock);
- if (qdisc && qdisc->flags&TCQ_F_INGRES) {
+ if (qdisc && qdisc->flags&TCQ_F_INGRESS) {
oqdisc = dev->qdisc_ingress;
/* Prune old scheduler */
if (oqdisc && atomic_read(&oqdisc->refcnt) <= 1) {
@@ -357,7 +357,7 @@
if (parent == NULL) {
- if (q && q->flags&TCQ_F_INGRES) {
+ if (q && q->flags&TCQ_F_INGRESS) {
*old = dev_graft_qdisc(dev, q);
} else {
*old = dev_graft_qdisc(dev, new);
@@ -431,7 +431,7 @@
skb_queue_head_init(&sch->q);
if (handle == TC_H_INGRESS)
- sch->flags |= TCQ_F_INGRES;
+ sch->flags |= TCQ_F_INGRESS;
sch->ops = ops;
sch->enqueue = ops->enqueue;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.4] PKT_SCHED: Rename TCQ_F_INGRES to TCQ_F_INGRESS
2004-10-22 23:07 [PATCH 2.4] PKT_SCHED: Rename TCQ_F_INGRES to TCQ_F_INGRESS Thomas Graf
@ 2004-10-26 3:26 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-10-26 3:26 UTC (permalink / raw)
To: Thomas Graf; +Cc: netdev
Both 2.4.x and 2.6.x variants applied, thanks Thomas.
Speaking of grep'ability, I will always apply patches that make
structure members easier to grep for in the kernel sources.
One great example is when Arnaldo added the "sk_*" prefix
to the names of the members of struct sock.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-26 3:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-22 23:07 [PATCH 2.4] PKT_SCHED: Rename TCQ_F_INGRES to TCQ_F_INGRESS Thomas Graf
2004-10-26 3:26 ` David S. Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.