summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-11-01 11:47:38 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-02 16:10:39 +0900
commit0b5a89caee5c9958c18cd933c7f8891e35b21781 (patch)
tree55f8da93b22146414cd3f2b3217131cb3ca026c5 /include/net
parent928990631327cf00a9195e30fa22f7ae5f8d7e67 (diff)
net: sched: remove unused tc_should_offload helper
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/pkt_cls.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 37c5ef766655..108dcdd96421 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -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;