Re: [net-next 00/13] can: dev: cleanup and add CAN frame length handling support

From
Marc Kleine-Budde <mkl@pengutronix.de>
Date
2021-01-11 08:27:34
Reply to
Vincent MAILHOL, 2021-01-10
On 1/10/21 9:55 AM, Vincent MAILHOL wrote:
[...]
Did you test it after the occurence of a can_bus_off() event?
Not yet...
When the device restarts, you normally have to call
netdev_reset_queue(netdev) in order to reset all the BQL
statistics.
I only included the relevant parts to illustrate the use of the changed API.
There is a netdev_reset_queue() in mcp251xfd_ring_init(), which is called via:
mcp251xfd_chip_start(), mcp251xfd_set_mode()
quoted hunk ↗ jump to hunk
@@ -335,6 +335,8 @@ static void mcp251xfd_ring_init(struct mcp251xfd_priv *priv)
        u8 len;
        int i, j;
 
+       netdev_reset_queue(priv->ndev);
+
        /* TEF */
        tef_ring = priv->tef;
        tef_ring->head = 0;
Marc

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

Attachments

Thread (40 messages) 40 messages, 3 authors, last reply 2021-01-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help