> diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c
> index 27ba175..744156c 100644
> --- a/lib/librte_vhost/virtio-net.c
> +++ b/lib/librte_vhost/virtio-net.c
> @@ -68,7 +68,9 @@ static struct virtio_net_device_ops const *notify_ops;
> static struct virtio_net_config_ll *ll_root;
>
> /* Features supported by this application. RX merge buffers are enabled by
> default. */
> -#define VHOST_SUPPORTED_FEATURES (1ULL << VIRTIO_NET_F_MRG_RXBUF)
> +#define VHOST_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF)
> | \
> + (1ULL << VIRTIO_NET_F_CTRL_RX))
> +
CTRL_RX is dependent on CTRL_VQ.
CTRL_VQ should be enabled if CTRL_RX is enabled.
Observed that virtio-net driver will crash if CTRL_VQ isn't enabled in
vhost-user case.
/* Caller should know better */
BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ) ||
(out + in > VIRTNET_SEND_COMMAND_SG_MAX));
> static uint64_t VHOST_FEATURES = VHOST_SUPPORTED_FEATURES;
>
> /* Line size for reading maps file. */
> --
> 1.8.4.2- [dpdk-dev] [PATCH 5/5] examples/vmdq: set default value ... Ouyang Changchun
- [dpdk-dev] [PATCH 0/5] Support virtio multicast feature Zhang, XiaonanX
- [dpdk-dev] [PATCH v2 0/5] Support virtio multicast featu... Ouyang Changchun
- [dpdk-dev] [PATCH v2 1/5] ethdev: Add new config fi... Ouyang Changchun
- [dpdk-dev] [PATCH v2 2/5] e1000: config VMDQ offloa... Ouyang Changchun
- [dpdk-dev] [PATCH v2 3/5] vhost: enable promisc mod... Ouyang Changchun
- [dpdk-dev] [PATCH v2 3/5] vhost: enable promisc... Xie, Huawei
- [dpdk-dev] [PATCH v2 3/5] vhost: enable pro... Ouyang, Changchun
- [dpdk-dev] [PATCH v2 3/5] vhost: enable... Bruce Richardson
- [dpdk-dev] [PATCH v2 3/5] vhost: e... Ouyang, Changchun
- [dpdk-dev] [PATCH v2 3/5] vhost: enable promisc... Xie, Huawei
- [dpdk-dev] [PATCH v2 3/5] vhost: enable pro... Ouyang, Changchun
- [dpdk-dev] [PATCH v2 3/5] vhost: enable pro... Thomas Monjalon
- [dpdk-dev] [PATCH v2 3/5] vhost: enable... Xie, Huawei
- [dpdk-dev] [PATCH v2 4/5] virtio: New API to enable... Ouyang Changchun
- [dpdk-dev] [PATCH v2 5/5] examples/vmdq: set defaul... Ouyang Changchun
- [dpdk-dev] [PATCH v3 0/5] Support virtio multicast ... Ouyang Changchun
- [dpdk-dev] [PATCH v3 1/5] ethdev: add vmdq rx m... Ouyang Changchun
- [dpdk-dev] [PATCH v3 1/5] ethdev: add vmdq ... Thomas Monjalon
- [dpdk-dev] [PATCH v3 1/5] ethdev: add v... Ouyang, Changchun
- [dpdk-dev] [PATCH v3 2/5] igb: Config VM offloa... Ouyang Changchun

