int enetc_setup_tc_mqprio(struct net_device *ndev, void *type_data)
 {
+       struct tc_mqprio_qopt_offload *mqprio = type_data;
        struct enetc_ndev_priv *priv = netdev_priv(ndev);
-       struct tc_mqprio_qopt *mqprio = type_data;
+       struct tc_mqprio_qopt *qopt = &mqprio->qopt;
        struct enetc_hw *hw = &priv->si->hw;
        int num_stack_tx_queues = 0;
-       u8 num_tc = mqprio->num_tc;
        struct enetc_bdr *tx_ring;
+       u8 num_tc = qopt->num_tc;
        int offset, count;
        int err, tc, q;
 
                return err;
 
        for (tc = 0; tc < num_tc; tc++) {
-               offset = mqprio->offset[tc];
-               count = mqprio->count[tc];
+               offset = qopt->offset[tc];
+               count = qopt->count[tc];
                num_stack_tx_queues += count;
 
                err = netdev_set_tc_queue(ndev, tc, count, offset);