Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d978db8d authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

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



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: 2572ac53 ("net: sched: make type an argument for ndo_setup_tc")
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0bbd7dad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}