[dpdk-dev] [PATCH v3 17/21] net/virtio: disable ctrl virtqueue for packed rings
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Apr 6 11:38:50 CEST 2018
On 04/05/2018 12:10 PM, Jens Freimann wrote:
> Signed-off-by: Jens Freiman <jfreimann at redhat.com>
> ---
> drivers/net/virtio/virtio_ethdev.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
> index dc220c743..7367d9c5d 100644
> --- a/drivers/net/virtio/virtio_ethdev.c
> +++ b/drivers/net/virtio/virtio_ethdev.c
> @@ -1157,6 +1157,13 @@ virtio_negotiate_features(struct virtio_hw *hw, uint64_t req_features)
> req_features &= ~(1ull << VIRTIO_F_RING_PACKED);
> #endif
>
> + if (req_features & (1ULL << VIRTIO_F_RING_PACKED)) {
> + req_features &= ~(1ull << VIRTIO_NET_F_CTRL_MAC_ADDR);
> + req_features &= ~(1ull << VIRTIO_NET_F_CTRL_VQ);
> + req_features &= ~(1ull << VIRTIO_NET_F_CTRL_RX);
> + req_features &= ~(1ull << VIRTIO_NET_F_CTRL_VLAN);
> + }
> +
Does packed ring not support ctrl vqs, or is it just a workaround while
it is implemented?
> /*
> * Negotiate features: Subset of device feature bits are written back
> * guest feature bits.
>
More information about the dev
mailing list