Lines Matching refs:newqs
1584 int fun_replace_queues(struct net_device *dev, struct fun_qset *newqs, in fun_replace_queues() argument
1591 newqs->nrxqs = dev->real_num_rx_queues; in fun_replace_queues()
1592 newqs->ntxqs = dev->real_num_tx_queues; in fun_replace_queues()
1593 newqs->nxdpqs = fp->num_xdpqs; in fun_replace_queues()
1594 newqs->state = FUN_QSTATE_INIT_SW; in fun_replace_queues()
1595 err = fun_alloc_rings(dev, newqs); in fun_replace_queues()
1604 err = fun_up(dev, newqs); in fun_replace_queues()
1612 newqs->state = FUN_QSTATE_DESTROYED; in fun_replace_queues()
1613 fun_free_rings(dev, newqs); in fun_replace_queues()
1637 struct fun_qset newqs = { in fun_change_num_queues() local
1649 err = fun_alloc_rings(dev, &newqs); in fun_change_num_queues()
1658 memcpy(newqs.rxqs, oldqs.rxqs, keep_rx * sizeof(*oldqs.rxqs)); in fun_change_num_queues()
1659 memcpy(newqs.txqs, fp->txqs, keep_tx * sizeof(*fp->txqs)); in fun_change_num_queues()
1676 rcu_assign_pointer(fp->rxqs, newqs.rxqs); in fun_change_num_queues()
1677 fp->txqs = newqs.txqs; in fun_change_num_queues()
1698 fun_disable_one_irq(newqs.txqs[i]->irq); in fun_change_num_queues()
1700 newqs.state = FUN_QSTATE_DESTROYED; in fun_change_num_queues()
1701 fun_free_rings(dev, &newqs); in fun_change_num_queues()