[dpdk-dev] [PATCH] net/virtio: define avail and used flags as constants

Jens Freimann jfreimann at redhat.com
Mon Mar 25 08:47:35 CET 2019


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.bie at 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 <jfreimann at redhat.com>




More information about the dev mailing list