]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: sched: remove unused tc_should_offload helper
authorJiri Pirko <jiri@mellanox.com>
Wed, 1 Nov 2017 10:47:38 +0000 (11:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 07:10:39 +0000 (16:10 +0900)
tc_should_offload is no longer used, remove it.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h

index 37c5ef766655baf23e5dfb0eb0aa1b8be239d5fc..108dcdd96421e45a788ad6c88edffa2046e884ca 100644 (file)
@@ -623,13 +623,6 @@ static inline bool tc_skip_hw(u32 flags)
        return (flags & TCA_CLS_FLAGS_SKIP_HW) ? true : false;
 }
 
-static inline bool tc_should_offload(const struct net_device *dev, u32 flags)
-{
-       if (tc_skip_hw(flags))
-               return false;
-       return tc_can_offload(dev);
-}
-
 static inline bool tc_skip_sw(u32 flags)
 {
        return (flags & TCA_CLS_FLAGS_SKIP_SW) ? true : false;