malloc: fix memory element size in case of padding
[dpdk.git] / lib / librte_vhost / rte_vdpa.h
index c3c1481..9a3deb3 100644 (file)
@@ -100,7 +100,8 @@ struct rte_vdpa_device {
  * @return
  *  device id on success, -1 on failure
  */
-int __rte_experimental
+__rte_experimental
+int
 rte_vdpa_register_device(struct rte_vdpa_dev_addr *addr,
                struct rte_vdpa_dev_ops *ops);
 
@@ -115,7 +116,8 @@ rte_vdpa_register_device(struct rte_vdpa_dev_addr *addr,
  * @return
  *  device id on success, -1 on failure
  */
-int __rte_experimental
+__rte_experimental
+int
 rte_vdpa_unregister_device(int did);
 
 /**
@@ -129,7 +131,8 @@ rte_vdpa_unregister_device(int did);
  * @return
  *  device id on success, -1 on failure
  */
-int __rte_experimental
+__rte_experimental
+int
 rte_vdpa_find_device_id(struct rte_vdpa_dev_addr *addr);
 
 /**
@@ -143,7 +146,8 @@ rte_vdpa_find_device_id(struct rte_vdpa_dev_addr *addr);
  * @return
  *  rte_vdpa_device on success, NULL on failure
  */
-struct rte_vdpa_device * __rte_experimental
+__rte_experimental
+struct rte_vdpa_device *
 rte_vdpa_get_device(int did);
 
 /**
@@ -155,7 +159,8 @@ rte_vdpa_get_device(int did);
  * @return
  *  available vdpa device number
  */
-int __rte_experimental
+__rte_experimental
+int
 rte_vdpa_get_device_num(void);
 
 /**
@@ -171,28 +176,10 @@ rte_vdpa_get_device_num(void);
  * @return
  *  0 on success, -1 on failure
  */
-int __rte_experimental
+__rte_experimental
+int
 rte_vhost_host_notifier_ctrl(int vid, bool enable);
 
-/**
- * @warning
- * @b EXPERIMENTAL: this API may change without prior notice
- *
- * Synchronize the available ring from guest to mediated ring, help to
- * check desc validity to protect against malicious guest driver.
- *
- * @param vid
- *  vhost device id
- * @param qid
- *  vhost queue id
- * @param vring_m
- *  mediated virtio ring pointer
- * @return
- *  number of synced available entries on success, -1 on failure
- */
-int __rte_experimental
-rte_vdpa_relay_vring_avail(int vid, uint16_t qid, void *vring_m);
-
 /**
  * @warning
  * @b EXPERIMENTAL: this API may change without prior notice
@@ -210,6 +197,7 @@ rte_vdpa_relay_vring_avail(int vid, uint16_t qid, void *vring_m);
  * @return
  *  number of synced used entries on success, -1 on failure
  */
-int __rte_experimental
+__rte_experimental
+int
 rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m);
 #endif /* _RTE_VDPA_H_ */