net/ifc: enable the host notifier support
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 8 Jun 2018 03:22:24 +0000 (11:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 15 Jun 2018 10:27:20 +0000 (12:27 +0200)
The necessary vDPA ops have already been implemented
in ifcvf driver. So just need to announce the necessary
protocol features to enable the host notifier support.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/ifc/ifcvf_vdpa.c

index c6627c2..b8e22da 100644 (file)
@@ -646,6 +646,9 @@ ifcvf_get_vdpa_features(int did, uint64_t *features)
 
 #define VDPA_SUPPORTED_PROTOCOL_FEATURES \
                (1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK | \
+                1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ | \
+                1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD | \
+                1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER | \
                 1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD)
 static int
 ifcvf_get_protocol_features(int did __rte_unused, uint64_t *features)