# Re: \[PATCH\] net: sch\_generic: Use pfifo\_fast as fallback scheduler for CAN hardware

- From: Marc Kleine-Budde \<mkl@pengutronix.de\>
- Date: 2019-10-22 12:58:33 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/10/9353210
- Thread: https://ratatoskr.run/netdev/2019/03/9353026/t.md

```text
On 10/22/19 2:47 PM, Vincent Prince wrote:
> Signed-off-by: Vincent Prince <redacted>

Please add the patch description, preferred that one from my original patch.

> ---
>  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)
^^^^^^^^^^^^^^^
use one tab to indent.

> +		ops = &pfifo_fast_ops;
>  
>  	qdisc = qdisc_create_dflt(dev_queue, ops, TC_H_ROOT, NULL);
>  	if (!qdisc) {
> 

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

```

## Attachments

- [signature.asc](https://ratatoskr.run/netdev/2019/10/9353210/attachment/0) (application/pgp-signature, 488 bytes)
