Lines Matching refs:mqprio
1487 const struct tc_mqprio_qopt *mqprio) in taprio_mqprio_cmp() argument
1491 if (!mqprio || mqprio->num_tc != dev->num_tc) in taprio_mqprio_cmp()
1494 for (i = 0; i < mqprio->num_tc; i++) in taprio_mqprio_cmp()
1495 if (dev->tc_to_txq[i].count != mqprio->count[i] || in taprio_mqprio_cmp()
1496 dev->tc_to_txq[i].offset != mqprio->offset[i]) in taprio_mqprio_cmp()
1500 if (dev->prio_tc_map[i] != mqprio->prio_tc_map[i]) in taprio_mqprio_cmp()
1540 struct tc_mqprio_qopt *mqprio = NULL; in taprio_change() local
1551 mqprio = nla_data(tb[TCA_TAPRIO_ATTR_PRIOMAP]); in taprio_change()
1560 err = taprio_parse_mqprio_opt(dev, mqprio, extack, q->flags); in taprio_change()
1579 if (!taprio_mqprio_cmp(dev, mqprio)) in taprio_change()
1580 mqprio = NULL; in taprio_change()
1582 if (mqprio && (oper || admin)) { in taprio_change()
1604 if (mqprio) { in taprio_change()
1605 err = netdev_set_num_tc(dev, mqprio->num_tc); in taprio_change()
1608 for (i = 0; i < mqprio->num_tc; i++) in taprio_change()
1610 mqprio->count[i], in taprio_change()
1611 mqprio->offset[i]); in taprio_change()
1616 mqprio->prio_tc_map[i]); in taprio_change()