On Sun, Mar 12, 2017 at 05:34:01PM +0100, Maxime Coquelin wrote: > This patch implements the function for the application to > get the MTU value.
I'm thinking the other way. As we are making vhost being generic, it doesn't make too much sense now to store a net specific value at vhost layer. I'm thinking we may could introduce a vhost-user request handler, something like: rte_vhost_driver_register_msg_handler(socket, handler); All vhost-user message then will goto the driver's sepcific handler. if it's handlered, do nothing in vhost lib. Otherwise, we handle it in vhost lib. In this way, you could handle the mtu message inside vhost-pmd; thus, there is no need to introduce one more (net specific) API. Thoughts? --yliu