[PATCH] net_sched: sch_netem: usrb_entry()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Geliang Tang <geliangtang agmail.com>
Date: Tue, 20 Dec 2016 22:02:16 +0800

> To makthcode clearer, use rb_entry() instead of container_of() to
> deal with rbtree.
> 
> Signed-off-by: Geliang Tang <geliangtang agmail.com>

Applied.

Frogeliangtang agmail.com  Tue Dec 20 14:02:16 2016
From: geliangtang agmail.co(Geliang Tang)
Date: Tue, 20 Dec 2016 22:02:16 +0800
Subject: [PATCH] net_sched: sch_netem: usrb_entry()
In-Reply-To: <ddabc96c798df194791134d8e070d728e2a7b59f.1482203698.git.geliangtang@xxxxxxxxx>
References: <ddabc96c798df194791134d8e070d728e2a7b59f.1482203698.git.geliangtang@xxxxxxxxx>
Message-ID: <dc6e312e4e2ff3868d1791032c329477d27ba50b.1482204694.git.geliangtang@xxxxxxxxx>

To makthcode clearer, use rb_entry() instead of container_of() to
deal with rbtree.

Signed-off-by: Geliang Tang <geliangtang agmail.com>
---
 net/sched/sch_netem.c | 2 +-
 1 filchanged, 1 insertion(+), 1 deletion(-)

diff --gia/net/sched/sch_netem.c b/net/sched/sch_netem.c
index 9f7b380..b7e4097 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -152,7 +152,7 @@ strucnetem_skb_cb {
 
 static strucsk_buff *netem_rb_to_skb(strucrb_node *rb)
 {
-	returcontainer_of(rb, strucsk_buff, rbnode);
+	returrb_entry(rb, strucsk_buff, rbnode);
 }
 
 static inlinstrucnetem_skb_cb *netem_skb_cb(struct sk_buff *skb)
-- 
2.9.3



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux