]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user/vhost-net-user.c
vhost: handle request to send RARP
[dpdk.git] / lib / librte_vhost / vhost_user / vhost-net-user.c
index 32ad6f6c52f69d2000b437dd7b0e81a7508b0f37..cb18396f1df086fe04ef0a30039acb707259f5b7 100644 (file)
@@ -100,6 +100,7 @@ static const char *vhost_message_str[VHOST_USER_MAX] = {
        [VHOST_USER_SET_PROTOCOL_FEATURES]  = "VHOST_USER_SET_PROTOCOL_FEATURES",
        [VHOST_USER_GET_QUEUE_NUM]  = "VHOST_USER_GET_QUEUE_NUM",
        [VHOST_USER_SET_VRING_ENABLE]  = "VHOST_USER_SET_VRING_ENABLE",
+       [VHOST_USER_SEND_RARP]  = "VHOST_USER_SEND_RARP",
 };
 
 /**
@@ -437,6 +438,9 @@ vserver_message_handler(int connfd, void *dat, int *remove)
        case VHOST_USER_SET_VRING_ENABLE:
                user_set_vring_enable(ctx, &msg.payload.state);
                break;
+       case VHOST_USER_SEND_RARP:
+               user_send_rarp(&msg);
+               break;
 
        default:
                break;