Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa71212e authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

net: sched: remove unused is_classid_clsact_ingress/egress helpers



These helpers are no longer in use by drivers, so remove them.

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d58d31a1
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -135,19 +135,6 @@ static inline unsigned int psched_mtu(const struct net_device *dev)
	return dev->mtu + dev->hard_header_len;
}

static inline bool is_classid_clsact_ingress(u32 classid)
{
	/* This also returns true for ingress qdisc */
	return TC_H_MAJ(classid) == TC_H_MAJ(TC_H_CLSACT) &&
	       TC_H_MIN(classid) != TC_H_MIN(TC_H_MIN_EGRESS);
}

static inline bool is_classid_clsact_egress(u32 classid)
{
	return TC_H_MAJ(classid) == TC_H_MAJ(TC_H_CLSACT) &&
	       TC_H_MIN(classid) == TC_H_MIN(TC_H_MIN_EGRESS);
}

static inline struct net *qdisc_net(struct Qdisc *q)
{
	return dev_net(q->dev_queue->dev);