Re: [dpdk-dev] [PATCH] examples/vhost_blk: use common macros for min/max

2020-04-10 Thread Maxime Coquelin
On 2/19/20 11:39 AM, Thomas Monjalon wrote: > The macros RTE_MIN and RTE_MAX can be used in DPDK applications. > > This change implies fixing the sign of used_len as size_t > as defined in vhost_strcpy_pad(). > > Signed-off-by: Thomas Monjalon > --- > examples/vhost_blk/blk.c |

Re: [dpdk-dev] [PATCH] examples/vhost_blk: use common macros for min/max

2020-04-07 Thread Maxime Coquelin
On 2/22/20 12:50 AM, Tiwei Bie wrote: > On Fri, Feb 21, 2020 at 07:29:13PM +0100, Thomas Monjalon wrote: >> 20/02/2020 03:52, Tiwei Bie: >>> On Wed, Feb 19, 2020 at 11:39:22AM +0100, Thomas Monjalon wrote: The macros RTE_MIN and RTE_MAX can be used in DPDK applications. >> >> Only RTE_MIN i

Re: [dpdk-dev] [PATCH] examples/vhost_blk: use common macros for min/max

2020-02-21 Thread Tiwei Bie
On Fri, Feb 21, 2020 at 07:29:13PM +0100, Thomas Monjalon wrote: > 20/02/2020 03:52, Tiwei Bie: > > On Wed, Feb 19, 2020 at 11:39:22AM +0100, Thomas Monjalon wrote: > > > The macros RTE_MIN and RTE_MAX can be used in DPDK applications. > > Only RTE_MIN is used in this patch. The title is wrong as

Re: [dpdk-dev] [PATCH] examples/vhost_blk: use common macros for min/max

2020-02-21 Thread Thomas Monjalon
20/02/2020 03:52, Tiwei Bie: > On Wed, Feb 19, 2020 at 11:39:22AM +0100, Thomas Monjalon wrote: > > The macros RTE_MIN and RTE_MAX can be used in DPDK applications. Only RTE_MIN is used in this patch. The title is wrong as well. > > This change implies fixing the sign of used_len as size_t > > a

Re: [dpdk-dev] [PATCH] examples/vhost_blk: use common macros for min/max

2020-02-19 Thread Tiwei Bie
On Wed, Feb 19, 2020 at 11:39:22AM +0100, Thomas Monjalon wrote: > The macros RTE_MIN and RTE_MAX can be used in DPDK applications. > > This change implies fixing the sign of used_len as size_t > as defined in vhost_strcpy_pad(). > > Signed-off-by: Thomas Monjalon > --- > examples/vhost_blk/blk

[dpdk-dev] [PATCH] examples/vhost_blk: use common macros for min/max

2020-02-19 Thread Thomas Monjalon
The macros RTE_MIN and RTE_MAX can be used in DPDK applications. This change implies fixing the sign of used_len as size_t as defined in vhost_strcpy_pad(). Signed-off-by: Thomas Monjalon --- examples/vhost_blk/blk.c | 4 ++-- examples/vhost_blk/vhost_blk.h| 2 -- examples/