From: Jiri Pirko Date: Wed, 1 Nov 2017 10:47:38 +0000 (+0100) Subject: net: sched: remove unused tc_should_offload helper X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0b5a89caee5c9958c18cd933c7f8891e35b21781;p=linux.git net: sched: remove unused tc_should_offload helper tc_should_offload is no longer used, remove it. Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 37c5ef766655b..108dcdd96421e 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;