Skip to content

Commit f1411b0

Browse files
MatiasVarastefano-garzarella
authored andcommitted
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 <[email protected]>
1 parent a0261d6 commit f1411b0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

vhost-device-can/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
### Changed
77

88
### Fixed
9+
- [[#888]](https://github.com/rust-vmm/vhost-device/pull/888) can: make features values conforming to the virtio spec
910

1011
### Deprecated
1112

vhost-device-can/src/virtio_can.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ pub(crate) const VIRTIO_CAN_RX: u16 = 0x0101;
4242
pub const VIRTIO_CAN_F_CAN_CLASSIC: u16 = 0;
4343
pub const VIRTIO_CAN_F_CAN_FD: u16 = 1;
4444
pub const VIRTIO_CAN_S_CTRL_BUSOFF: u16 = 2; /* Controller BusOff */
45+
pub const VIRTIO_CAN_F_RTR_FRAMES: u16 = 2;
4546
#[allow(dead_code)]
46-
pub const VIRTIO_CAN_F_LATE_TX_ACK: u16 = 2;
47-
pub const VIRTIO_CAN_F_RTR_FRAMES: u16 = 3;
47+
pub const VIRTIO_CAN_F_LATE_TX_ACK: u16 = 3;
4848

4949
/// Possible values of the status field
5050
pub const VIRTIO_CAN_RESULT_OK: u8 = 0x0;

0 commit comments

Comments
 (0)