]> git.droids-corp.org - dpdk.git/commitdiff
vdpa/mlx5: enable status protocol feature
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 6 Jul 2020 11:24:52 +0000 (13:24 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:52 +0000 (06:18 +0200)
This patch advertises VHOST_USER_PROTOCOL_F_STATUS
support in the MLX5 driver so that that the protocol
feature is negotiated.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/vdpa/mlx5/mlx5_vdpa.c

index 9bb462e95c4f76c7c10db14c4c99bbc55ed99853..67e77b11adaf6ea662b67c166c337abc6985bda1 100644 (file)
@@ -39,7 +39,8 @@
                             (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \
                             (1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) | \
                             (1ULL << VHOST_USER_PROTOCOL_F_MQ) | \
-                            (1ULL << VHOST_USER_PROTOCOL_F_NET_MTU))
+                            (1ULL << VHOST_USER_PROTOCOL_F_NET_MTU) | \
+                            (1ULL << VHOST_USER_PROTOCOL_F_STATUS))
 
 #define MLX5_VDPA_MAX_RETRIES 20
 #define MLX5_VDPA_USEC 1000