sch_mq.c (653d6fd68d8e5b43d496ca8a1d38331d515a226b) | sch_mq.c (a38a98821c939e67e5906bddbed1d15af5ca860d) |
---|---|
1/* 2 * net/sched/sch_mq.c Classful multiqueue dummy scheduler 3 * 4 * Copyright (c) 2009 Patrick McHardy <kaber@trash.net> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 47 unchanged lines hidden (view full) --- 56 GFP_KERNEL); 57 if (!priv->qdiscs) 58 return -ENOMEM; 59 60 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { 61 dev_queue = netdev_get_tx_queue(dev, ntx); 62 qdisc = qdisc_create_dflt(dev_queue, get_default_qdisc_ops(dev, ntx), 63 TC_H_MAKE(TC_H_MAJ(sch->handle), | 1/* 2 * net/sched/sch_mq.c Classful multiqueue dummy scheduler 3 * 4 * Copyright (c) 2009 Patrick McHardy <kaber@trash.net> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 47 unchanged lines hidden (view full) --- 56 GFP_KERNEL); 57 if (!priv->qdiscs) 58 return -ENOMEM; 59 60 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { 61 dev_queue = netdev_get_tx_queue(dev, ntx); 62 qdisc = qdisc_create_dflt(dev_queue, get_default_qdisc_ops(dev, ntx), 63 TC_H_MAKE(TC_H_MAJ(sch->handle), |
64 TC_H_MIN(ntx + 1))); | 64 TC_H_MIN(ntx + 1)), 65 extack); |
65 if (!qdisc) 66 return -ENOMEM; 67 priv->qdiscs[ntx] = qdisc; 68 qdisc->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; 69 } 70 71 sch->flags |= TCQ_F_MQROOT; 72 return 0; --- 178 unchanged lines hidden --- | 66 if (!qdisc) 67 return -ENOMEM; 68 priv->qdiscs[ntx] = qdisc; 69 qdisc->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; 70 } 71 72 sch->flags |= TCQ_F_MQROOT; 73 return 0; --- 178 unchanged lines hidden --- |