From 4f22f57651e3a83be1eb55dc2a36da8015b06f62 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 5 Mar 2021 16:21:01 +0100 Subject: [PATCH] vhost_user_net: Enable CONFIGURE_MEM_SLOTS protocol feature In order to support GET_MAX_MEM_SLOTS, ADD_MEM_REG and REM_MEM_REG, the protocol feature CONFIGURE_MEM_SLOTS must be enabled. Signed-off-by: Sebastien Boeuf --- vhost_user_net/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vhost_user_net/src/lib.rs b/vhost_user_net/src/lib.rs index 0b91772f7..c58604ba0 100644 --- a/vhost_user_net/src/lib.rs +++ b/vhost_user_net/src/lib.rs @@ -188,7 +188,9 @@ impl VhostUserBackend for VhostUserNetBackend { } fn protocol_features(&self) -> VhostUserProtocolFeatures { - VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::REPLY_ACK + VhostUserProtocolFeatures::MQ + | VhostUserProtocolFeatures::REPLY_ACK + | VhostUserProtocolFeatures::CONFIGURE_MEM_SLOTS } fn set_event_idx(&mut self, _enabled: bool) {}