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

2019-03-27 Thread Maxime Coquelin
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.

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

2019-03-27 Thread Maxime Coquelin
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.

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

2019-03-25 Thread Jens Freimann
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

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

2019-03-24 Thread Tiwei Bie
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 --- drivers/net