> -----Original Message----- > From: dev [mailto:[email protected]] On Behalf Of Maxime Coquelin > Sent: Thursday, February 28, 2019 4:32 PM > To: [email protected]; Liu, Changpeng <[email protected]>; Bie, Tiwei > <[email protected]>; [email protected] > Cc: Maxime Coquelin <[email protected]> > Subject: [dpdk-dev] [RFC v2 1/2] vhost: add API to set protocol features flags > > rte_vhost_driver_set_protocol_features API is to be used > by external backends to advertize vhost-user protocol > features it supports. > > It has to be called after rte_vhost_driver_register() and > before rte_vhost_driver_start(). > > Example of usage to advertize VHOST_USER_PROTOCOL_F_FOOBAR > protocol feature: > > const char *path = "/tmp/vhost-user"; > uint64_t protocol_features; > rte_vhost_driver_register(path, 0); > rte_vhost_driver_get_protocol_features(path, &protocol_features); > protocol_features |= VHOST_USER_PROTOCOL_F_FOOBAR; > rte_vhost_driver_set_protocol_features(path, protocol_features); > rte_vhost_driver_start(path); > > Signed-off-by: Maxime Coquelin <[email protected]> > ---
Tested-by: Darek Stojaczyk <[email protected]> Thanks!

