]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user/virtio-net-user.h
vhost: handle request to send RARP
[dpdk.git] / lib / librte_vhost / vhost_user / virtio-net-user.h
index 013cf38c5eb5ae29c1d47a47061964954d22aaa6..1e9ff9ae9fcee06f60f7e0b9a06ab27b524f447c 100644 (file)
 #include "vhost-net-user.h"
 
 #define VHOST_USER_PROTOCOL_F_MQ       0
+#define VHOST_USER_PROTOCOL_F_RARP     2
 
-#define VHOST_USER_PROTOCOL_FEATURES   (1ULL << VHOST_USER_PROTOCOL_F_MQ)
+#define VHOST_USER_PROTOCOL_FEATURES   ((1ULL << VHOST_USER_PROTOCOL_F_MQ) | \
+                                        (1ULL << VHOST_USER_PROTOCOL_F_RARP))
 
 int user_set_mem_table(struct vhost_device_ctx, struct VhostUserMsg *);
 
@@ -50,6 +52,7 @@ void user_set_vring_kick(struct vhost_device_ctx, struct VhostUserMsg *);
 void user_set_protocol_features(struct vhost_device_ctx ctx,
                                uint64_t protocol_features);
 int user_set_log_base(struct vhost_device_ctx ctx, struct VhostUserMsg *);
+int user_send_rarp(struct VhostUserMsg *);
 
 int user_get_vring_base(struct vhost_device_ctx, struct vhost_vring_state *);