libvhost-user: Fix VHOST_USER_NET_SET_MTU entry
PATCH 1/1 libvhost-user: Fix VHOST_USER_NET_SET_MTU entry
From: "Dr. David Alan Gilbert" <[email protected]>
VHOST_USER_'s 20th entry is defined as VHOST_USER_INPUT_GET_CONFIG but should be VHOST_USER_NET_SET_MTU.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- contrib/libvhost-user/libvhost-user.c | 2 +- contrib/libvhost-user/libvhost-user.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
contrib/libvhost-user/libvhost-user.c +1 -1
@@ -62,7 +62,7 @@ vu_request_to_string(int req)REQ (VHOST_USER_GET_QUEUE_NUM ),REQ (VHOST_USER_SET_VRING_ENABLE ),REQ (VHOST_USER_SEND_RARP ), -REQ (VHOST_USER_INPUT_GET_CONFIG ), +REQ (VHOST_USER_NET_SET_MTU ), REQ(VHOST_USER_MAX), };#undef REQ
contrib/libvhost-user/libvhost-user.h +1 -1
@@ -60,7 +60,7 @@ typedef enum VhostUserRequest {VHOST_USER_GET_QUEUE_NUM =17 ,VHOST_USER_SET_VRING_ENABLE =18 ,VHOST_USER_SEND_RARP =19 , -VHOST_USER_INPUT_GET_CONFIG =20 , +VHOST_USER_NET_SET_MTU =20 , VHOST_USER_MAX } VhostUserRequest;
Signature · 1 line
2.12.2
----- Original Message -----
Quoted 6 lines
From: "Dr. David Alan Gilbert" <[email protected]>
VHOST_USER_'s 20th entry is defined as
VHOST_USER_INPUT_GET_CONFIGbut should beVHOST_USER_NET_SET_MTU.Signed-off-by Dr. David Alan Gilbert <[email protected]>
Reviewed-by Marc-André Lureau <[email protected]>
Quoted 37 lines
--- contrib/libvhost-user/libvhost-user.c | 2 +- contrib/libvhost-user/libvhost-user.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)contrib/libvhost-user/libvhost-user.c +1
-1@@ -62,7 +62,7 @@ vu_request_to_string(int req)REQ (VHOST_USER_GET_QUEUE_NUM ),REQ (VHOST_USER_SET_VRING_ENABLE ),REQ (VHOST_USER_SEND_RARP ), -REQ (VHOST_USER_INPUT_GET_CONFIG ), +REQ (VHOST_USER_NET_SET_MTU ), REQ(VHOST_USER_MAX), };#undef REQcontrib/libvhost-user/libvhost-user.h +1
-2@@ -60,7 +60,7 @@ typedef enum VhostUserRequest {VHOST_USER_GET_QUEUE_NUM =17 ,VHOST_USER_SET_VRING_ENABLE =18 ,VHOST_USER_SEND_RARP =19 , -VHOST_USER_INPUT_GET_CONFIG =20 , +VHOST_USER_NET_SET_MTU =20 , VHOST_USER_MAX } VhostUserRequest; --2.12.2