Skip to contentSkip to conversation

net: sched: cls_flower: fix ndo_setup_tc type for stats call

PATCH Applied Jiri Pirko 2 participants 2 messages Aug 16, 2017

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 net: sched: cls_flower: fix ndo_setup_tc type for stats call

From: Jiri Pirko <[email protected]>

I made a stupid mistake using TC_CLSFLOWER_STATS instead of TC_SETUP_CLSFLOWER. Funny thing is that both are defined as "2" so it actually did not cause any harm. Anyway, fixing it now.

Fixes 2572ac53c46f ("net: sched: make type an argument for ndo_setup_tc")
---
 net/sched/cls_flower.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/sched/cls_flower.c +1 -1
index 052e902..bd9dab4 100644
@@ -289,7 +289,7 @@ static void fl_hw_update_stats(struct tcf_proto *tp, struct cls_fl_filter *f)
 	cls_flower.cookie = (unsigned long) f;
 	cls_flower.exts = &f->exts;
 
-	dev->netdev_ops->ndo_setup_tc(dev, TC_CLSFLOWER_STATS,
+	dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_CLSFLOWER,
 				      &cls_flower);
 }
 
Signature · 1 line
2.9.3
maintainer Applied
#1 lore raw

From: Jiri Pirko <[email protected]>
Date: Wed, 16 Aug 2017 17:15:18 +0200

Quoted 8 lines

From: Jiri Pirko <[email protected]>

I made a stupid mistake using TC_CLSFLOWER_STATS instead of TC_SETUP_CLSFLOWER. Funny thing is that both are defined as "2" so it actually did not cause any harm. Anyway, fixing it now.

Fixes 2572ac53c46f ("net: sched: make type an argument for ndo_setup_tc")

Applied, thanks Jiri.