Re: [PATCH v2 6/7] hw/net/can/xlnx-versal-canfd: Simplify DLC conversions

2024-09-04 Thread Francisco Iglesias
On Mon, Aug 26, 2024 at 08:49:26PM -0700, Doug Brown wrote: > Use QEMU's helper functions can_dlc2len() and can_len2dlc() for > translating between the raw DLC value and the SocketCAN length value. > This also has the side effect of correctly handling received CAN FD > frames with a DLC of 0-8, whi

Re: [PATCH v2 6/7] hw/net/can/xlnx-versal-canfd: Simplify DLC conversions

2024-08-29 Thread Pavel Pisa
On Tuesday 27 of August 2024 05:49:26 Doug Brown wrote: > Use QEMU's helper functions can_dlc2len() and can_len2dlc() for > translating between the raw DLC value and the SocketCAN length value. > This also has the side effect of correctly handling received CAN FD > frames with a DLC of 0-8, which w

[PATCH v2 6/7] hw/net/can/xlnx-versal-canfd: Simplify DLC conversions

2024-08-26 Thread Doug Brown
Use QEMU's helper functions can_dlc2len() and can_len2dlc() for translating between the raw DLC value and the SocketCAN length value. This also has the side effect of correctly handling received CAN FD frames with a DLC of 0-8, which was broken previously. Signed-off-by: Doug Brown --- hw/net/ca