[dpdk-dev,v2,3/6] vhost: remove useless volatile
Commit Message
This patch removes useless volatile attribute to allow compiler
optimization.
Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
---
lib/librte_vhost/vhost-net.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -71,7 +71,7 @@ struct vhost_virtqueue {
uint32_t size;
/* Last index used on the available ring */
- volatile uint16_t last_used_idx;
+ uint16_t last_used_idx;
#define VIRTIO_INVALID_EVENTFD (-1)
#define VIRTIO_UNINITIALIZED_EVENTFD (-2)