sch_mq.c (79e24da00b1137031245f3341828e4215b1b5b59) | sch_mq.c (1f27cde313d72d6b44a73ba89c8b2c6a99c628cf) |
---|---|
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. --- 43 unchanged lines hidden (view full) --- 52 /* pre-allocate qdiscs, attachment can't fail */ 53 priv->qdiscs = kcalloc(dev->num_tx_queues, sizeof(priv->qdiscs[0]), 54 GFP_KERNEL); 55 if (priv->qdiscs == NULL) 56 return -ENOMEM; 57 58 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { 59 dev_queue = netdev_get_tx_queue(dev, ntx); | 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. --- 43 unchanged lines hidden (view full) --- 52 /* pre-allocate qdiscs, attachment can't fail */ 53 priv->qdiscs = kcalloc(dev->num_tx_queues, sizeof(priv->qdiscs[0]), 54 GFP_KERNEL); 55 if (priv->qdiscs == NULL) 56 return -ENOMEM; 57 58 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { 59 dev_queue = netdev_get_tx_queue(dev, ntx); |
60 qdisc = qdisc_create_dflt(dev_queue, default_qdisc_ops, | 60 qdisc = qdisc_create_dflt(dev_queue, get_default_qdisc_ops(dev, ntx), |
61 TC_H_MAKE(TC_H_MAJ(sch->handle), 62 TC_H_MIN(ntx + 1))); 63 if (qdisc == NULL) 64 goto err; 65 priv->qdiscs[ntx] = qdisc; 66 qdisc->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; 67 } 68 --- 178 unchanged lines hidden --- | 61 TC_H_MAKE(TC_H_MAJ(sch->handle), 62 TC_H_MIN(ntx + 1))); 63 if (qdisc == NULL) 64 goto err; 65 priv->qdiscs[ntx] = qdisc; 66 qdisc->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; 67 } 68 --- 178 unchanged lines hidden --- |