OSDN Git Service

net: sched: make type an argument for ndo_setup_tc
[uclinux-h8/linux.git] / drivers / net / ethernet / intel / fm10k / fm10k_netdev.c
index 5e37387..b301906 100644 (file)
@@ -1265,10 +1265,11 @@ err_queueing_scheme:
        return err;
 }
 
-static int __fm10k_setup_tc(struct net_device *dev, u32 handle, u32 chain_index,
-                           __be16 proto, struct tc_to_netdev *tc)
+static int __fm10k_setup_tc(struct net_device *dev, enum tc_setup_type type,
+                           u32 handle, u32 chain_index, __be16 proto,
+                           struct tc_to_netdev *tc)
 {
-       if (tc->type != TC_SETUP_MQPRIO)
+       if (type != TC_SETUP_MQPRIO)
                return -EINVAL;
 
        tc->mqprio->hw = TC_MQPRIO_HW_OFFLOAD_TCS;