summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorVincent Prince <vincent.prince.fr@gmail.com>2019-10-23 15:44:20 +0200
committerVincent Prince <vincent.prince.external@saftbatteries.com>2020-02-10 16:14:06 +0100
commitfb1d29ab844cc98058bd43abd487fe069b74b817 (patch)
tree8543da542e54bbb5a8f2ddb9792642075eba56b4 /net
parent500f9a04cd76f504285ad99b15e390e20ab17e0c (diff)
net: sch_generic: Use pfifo_fast as fallback scheduler for CAN hardware
commit 546b85bb0aadb5a928b49b53dc02911996169c0b upstream. Signed-off-by: Vincent Prince <vincent.prince.fr@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/sched/sch_generic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 21b981abbacb..cdea8fa85452 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -768,6 +768,8 @@ static void attach_one_default_qdisc(struct net_device *dev,
if (dev->priv_flags & IFF_NO_QUEUE)
ops = &noqueue_qdisc_ops;
+ else if(dev->type == ARPHRD_CAN)
+ ops = &pfifo_fast_ops;
qdisc = qdisc_create_dflt(dev_queue, ops, TC_H_ROOT);
if (!qdisc) {