Merge pull request #58 from nefethael/feature/can-fq-4.14

net: sch_generic: Use pfifo_fast as fallback scheduler for CAN hardware
This commit is contained in:
Otavio Salvador 2020-02-10 15:02:58 -03:00 committed by GitHub
commit 6da05a37e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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) {