can: make features values conforming to the virtio spec

Fix the values of VIRTIO_CAN_F_RTR_FRAMES and VIRTIO_CAN_F_LATE_TX_ACK
to be conforming to the virtio spec and the driver (see comments in
https://lkml.org/lkml/2025/9/11/1615).

Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
This commit is contained in:
Matias Ezequiel Vara Larsen 2025-10-10 10:30:13 +02:00
parent a0261d689e
commit dd6f5e2879
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
### Changed
### Fixed
- [[#888]](https://github.com/rust-vmm/vhost-device/pull/888) can: make features values conforming to the virtio spec
### Deprecated

View File

@ -42,9 +42,9 @@ pub(crate) const VIRTIO_CAN_RX: u16 = 0x0101;
pub const VIRTIO_CAN_F_CAN_CLASSIC: u16 = 0;
pub const VIRTIO_CAN_F_CAN_FD: u16 = 1;
pub const VIRTIO_CAN_S_CTRL_BUSOFF: u16 = 2; /* Controller BusOff */
pub const VIRTIO_CAN_F_RTR_FRAMES: u16 = 2;
#[allow(dead_code)]
pub const VIRTIO_CAN_F_LATE_TX_ACK: u16 = 2;
pub const VIRTIO_CAN_F_RTR_FRAMES: u16 = 3;
pub const VIRTIO_CAN_F_LATE_TX_ACK: u16 = 3;
/// Possible values of the status field
pub const VIRTIO_CAN_RESULT_OK: u8 = 0x0;