hw/net/can/xlnx-versal-canfd: Handle flags correctly
authorDoug Brown <doug@schmorgal.com>
Fri, 13 Sep 2024 14:31:48 +0000 (15:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Sep 2024 14:31:48 +0000 (15:31 +0100)
commit7f34aae641ce1a2654c1a950aec4eab6f371a55d
tree4ace25907755ca7de685c498f72f580b2a0f8484
parent77dcbf16d971596261ddaa910f57ccceb48227b5
hw/net/can/xlnx-versal-canfd: Handle flags correctly

Add support for QEMU_CAN_FRMF_ESI and QEMU_CAN_FRMF_BRS flags, and
ensure frame->flags is always initialized to 0.

Note that the Xilinx IP core doesn't allow manually setting the ESI bit
during transmits, so it's only implemented for the receive case.

Signed-off-by: Doug Brown <doug@schmorgal.com>
Reviewed-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Message-id: 20240827034927.66659-5-doug@schmorgal.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/can/xlnx-versal-canfd.c