Skip to content

Commit

Permalink
net: sched: remove unused tc_should_offload helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Nov 2, 2017
1 parent 9289906 commit 0b5a89c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/net/pkt_cls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b5a89c

Please sign in to comment.