net: sched: make type an argument for ndo_setup_tc
Since the type is always present, push it to be a separate argument to ndo_setup_tc. On the way, name the type enum and use it for arg type. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1afec92be0
commit
2572ac53c4
@@ -342,14 +342,15 @@ static void dpaa_get_stats64(struct net_device *net_dev,
|
||||
}
|
||||
}
|
||||
|
||||
static int dpaa_setup_tc(struct net_device *net_dev, u32 handle,
|
||||
u32 chain_index, __be16 proto, struct tc_to_netdev *tc)
|
||||
static int dpaa_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
|
||||
u32 handle, u32 chain_index, __be16 proto,
|
||||
struct tc_to_netdev *tc)
|
||||
{
|
||||
struct dpaa_priv *priv = netdev_priv(net_dev);
|
||||
u8 num_tc;
|
||||
int i;
|
||||
|
||||
if (tc->type != TC_SETUP_MQPRIO)
|
||||
if (type != TC_SETUP_MQPRIO)
|
||||
return -EINVAL;
|
||||
|
||||
tc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;
|
||||
|
Reference in New Issue
Block a user