net/virtio: define avail and used flags as constants
authorTiwei Bie <tiwei.bie@intel.com>
Mon, 25 Mar 2019 05:27:16 +0000 (13:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:32 +0000 (17:25 +0100)
commit12e9e70c89cd3fc9baa9b82ac21bce5ccb6c4d25
tree5145a2f7329eebfe9b0cd7e8ccbe296585c2c2bf
parent1c8489da561be16ac73c6dab01db816af249713f
net/virtio: define avail and used flags as constants

We are consistently passing 1 as the argument in the data path,
so there is no need to define avail/used flags as function-like
macros anymore. This patch changes the avail and used flags to
constants. And a frequently used combination is also introduced.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_ring.h
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_user/virtio_user_dev.c
drivers/net/virtio/virtqueue.h