[dpdk-dev] [PATCH] net/virtio: define avail and used flags as constants
Maxime Coquelin
maxime.coquelin at redhat.com
Wed Mar 27 11:30:47 CET 2019
On 3/25/19 6:27 AM, 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: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list