]> git.itanic.dy.fi Git - linux-stable/commit
Merge patch series "can: gs_usb: convert to NAPI"
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 28 Jul 2023 07:46:15 +0000 (09:46 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 28 Jul 2023 07:46:15 +0000 (09:46 +0200)
commit52be626ccbd7421f6124429b6d9fea9e31ae602f
tree7570ccd9412a428d8c477b9c761c62701f6e91b7
parent412fbb844d432a400629b011df8b38a5a95895f6
parent24bc41b4558347672a3db61009c339b1f5692169
Merge patch series "can: gs_usb: convert to NAPI"

Marc Kleine-Budde <mkl@pengutronix.de> says:

Traditionally USB drivers used netif_rx to pass the received CAN
frames/skbs to the network stack. In netif_rx() the skbs are queued to
the local CPU. If IRQs are handled in round robin, CAN frames may be
delivered out-of-order to user space.

To support devices without timestamping the TX path of the rx-offload
helper is cleaned up and extended:
- rename rx_offload_get_echo_skb() ->
  can_rx_offload_get_echo_skb_queue_timestamp()
- add can_rx_offload_get_echo_skb_queue_tail()

The last patch converts the gs_usb driver to NAPI with the rx-offload
helper.

Link: https://lore.kernel.org/all/20230718-gs_usb-rx-offload-v2-0-716e542d14d5@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>