[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1442244690-6672-1-git-send-email-phil@nwl.cc>
Date: Mon, 14 Sep 2015 17:31:30 +0200
From: Phil Sutter <phil@....cc>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net
Subject: [net-next PATCH] net: sched: document attach_default_qdiscs
The process of selecting an interface's default qdisc is not really
intuitive, at least because there are three different cases to consider.
Signed-off-by: Phil Sutter <phil@....cc>
---
net/sched/sch_generic.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index cb5d4ad..d7eaa51 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -741,6 +741,18 @@ static void attach_one_default_qdisc(struct net_device *dev,
dev_queue->qdisc_sleeping = qdisc;
}
+/**
+ * attach_default_qdiscs - set qdiscs back to default
+ * @dev: network device to attach to
+ *
+ * This function attaches the (configurable) default qdisc to
+ * an interface.
+ * The actual default depends: Non-MQ, physical interfaces
+ * get whatever default_qdisc_ops has been set to. Multiqueue
+ * interfaces get mq, which uses default_qdisc_ops for it's
+ * leaves. Finally, virtual interfaces unconditionally
+ * default to noqueue.
+ */
static void attach_default_qdiscs(struct net_device *dev)
{
struct netdev_queue *txq;
--
2.1.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists