net: sched: cls_flower: fix ndo_setup_tc type for stats call
authorJiri Pirko <jiri@mellanox.com>
Wed, 16 Aug 2017 15:15:18 +0000 (17:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 21:29:41 +0000 (14:29 -0700)
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")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c

index 052e902dc71cec10cfc9c229d5ba9b1cd52e5a96..bd9dab41f8afb610ca7cc3a890127179d4745b59 100644 (file)
@@ -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);
 }