lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 22 Oct 2019 14:47:28 +0200
From:   Vincent Prince <vincent.prince.fr@...il.com>
To:     mkl@...gutronix.de
Cc:     dave.taht@...il.com, davem@...emloft.net, jhs@...atatu.com,
        jiri@...nulli.us, kernel@...gutronix.de, linux-can@...r.kernel.org,
        netdev@...r.kernel.org, xiyou.wangcong@...il.com,
        Vincent Prince <vincent.prince.fr@...il.com>
Subject: [PATCH] net: sch_generic: Use pfifo_fast as fallback scheduler for CAN hardware

Signed-off-by: Vincent Prince <vincent.prince.fr@...il.com>
---
 net/sched/sch_generic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 77b289d..bff43de 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -1008,6 +1008,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, NULL);
 	if (!qdisc) {
-- 
2.7.4

Powered by blists - more mailing lists