On Mon, Mar 25, 2019 at 01:27:16PM +0800, Tiwei Bie wrote:
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....@intel.com>
---
drivers/net/virtio/virtio_ethdev.c | 10 ++++------
drivers/net/virtio/virtio_ring.h | 9 +++++++--
drivers/net/virtio/virtio_rxtx.c | 9 ++++-----
.../net/virtio/virtio_user/virtio_user_dev.c | 17 ++++++++++-------
drivers/net/virtio/virtqueue.h | 4 ++--
5 files changed, 27 insertions(+), 22 deletions(-)
Reviewed-by: Jens Freimann <jfreim...@redhat.com>