mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-28 04:10:14 +00:00
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:
parent
a0261d689e
commit
dd6f5e2879
@ -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
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user