Re: [dpdk-dev] [PATCH v2 2/7] vhost: vhost-user: Add MTU protocol feature support

2017-03-12 Thread Maxime Coquelin
On 03/08/2017 03:31 AM, Yuanhan Liu wrote: On Mon, Mar 06, 2017 at 09:27:35AM +0100, Maxime Coquelin wrote: +static int +vhost_user_net_set_mtu(struct virtio_net *dev, struct VhostUserMsg *msg) +{ + if (msg->payload.u64 < VIRTIO_MIN_MTU || + msg->payload.u64 > VIRTI

Re: [dpdk-dev] [PATCH v2 2/7] vhost: vhost-user: Add MTU protocol feature support

2017-03-07 Thread Yuanhan Liu
On Mon, Mar 06, 2017 at 09:27:35AM +0100, Maxime Coquelin wrote: > +static int > +vhost_user_net_set_mtu(struct virtio_net *dev, struct VhostUserMsg *msg) > +{ > + if (msg->payload.u64 < VIRTIO_MIN_MTU || > + msg->payload.u64 > VIRTIO_MAX_MTU) { > + RTE_LOG(ERR,

[dpdk-dev] [PATCH v2 2/7] vhost: vhost-user: Add MTU protocol feature support

2017-03-06 Thread Maxime Coquelin
This patch implements the vhost-user MTU protocol feature support. When VIRTIO_NET_F_MTU is negotiated, QEMU notifies the vhost-user backend with the configured MTU if dedicated protocol feature is supported. The value can be used by the application to ensure consistency with value set by the user