mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 15:31:15 +00:00
virtio-devices: net: Advertise full set of offload features
This is based on the offload features that can be configured on the tap. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
b945a341b3
commit
375382cb08
@ -314,11 +314,15 @@ impl Net {
|
|||||||
seccomp_action: SeccompAction,
|
seccomp_action: SeccompAction,
|
||||||
rate_limiter_config: Option<RateLimiterConfig>,
|
rate_limiter_config: Option<RateLimiterConfig>,
|
||||||
) -> Result<Self> {
|
) -> Result<Self> {
|
||||||
let mut avail_features = 1 << VIRTIO_NET_F_GUEST_CSUM
|
let mut avail_features = 1 << VIRTIO_NET_F_CSUM
|
||||||
| 1 << VIRTIO_NET_F_CSUM
|
| 1 << VIRTIO_NET_F_GUEST_CSUM
|
||||||
|
| 1 << VIRTIO_NET_F_GUEST_ECN
|
||||||
| 1 << VIRTIO_NET_F_GUEST_TSO4
|
| 1 << VIRTIO_NET_F_GUEST_TSO4
|
||||||
|
| 1 << VIRTIO_NET_F_GUEST_TSO6
|
||||||
| 1 << VIRTIO_NET_F_GUEST_UFO
|
| 1 << VIRTIO_NET_F_GUEST_UFO
|
||||||
|
| 1 << VIRTIO_NET_F_HOST_ECN
|
||||||
| 1 << VIRTIO_NET_F_HOST_TSO4
|
| 1 << VIRTIO_NET_F_HOST_TSO4
|
||||||
|
| 1 << VIRTIO_NET_F_HOST_TSO6
|
||||||
| 1 << VIRTIO_NET_F_HOST_UFO
|
| 1 << VIRTIO_NET_F_HOST_UFO
|
||||||
| 1 << VIRTIO_RING_F_EVENT_IDX
|
| 1 << VIRTIO_RING_F_EVENT_IDX
|
||||||
| 1 << VIRTIO_F_VERSION_1;
|
| 1 << VIRTIO_F_VERSION_1;
|
||||||
|
Loading…
Reference in New Issue
Block a user