Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34aedd3f authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

qdisc: fix build with !CONFIG_NET_SCHED



Multiqueue scheduler refers to default_qdisc_ops; therefore the
variable definition needs to be moved to handle case where net
scheduler API is not available.

Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d2a7f269
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -131,11 +131,6 @@ static DEFINE_RWLOCK(qdisc_mod_lock);
 ************************************************/


/* Qdisc to use by default */

const struct Qdisc_ops *default_qdisc_ops = &pfifo_fast_ops;
EXPORT_SYMBOL(default_qdisc_ops);

/* The list of all installed queueing disciplines. */

static struct Qdisc_ops *qdisc_base;
+4 −0
Original line number Diff line number Diff line
@@ -30,6 +30,10 @@
#include <net/pkt_sched.h>
#include <net/dst.h>

/* Qdisc to use by default */
const struct Qdisc_ops *default_qdisc_ops = &pfifo_fast_ops;
EXPORT_SYMBOL(default_qdisc_ops);

/* Main transmission queue. */

/* Modifications to data participating in scheduling must be protected with