On Mon, 2022-09-05 at 15:21 +0100, Pavel Begunkov wrote: > Remove duplicating tests and pass a buf index instead of dozens of > flags to specify the buffer we want to use. > > Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> > --- > test/send-zerocopy.c | 60 +++++++++++++++++++++++------------------- > -- > 1 file changed, 32 insertions(+), 28 deletions(-) > > diff --git a/test/send-zerocopy.c b/test/send-zerocopy.c > index bfe4cf7..2efbcf9 100644 > --- a/test/send-zerocopy.c > +++ b/test/send-zerocopy.c > @@ -51,8 +51,16 @@ > #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) > #endif > > +enum { > + BUF_T_NORMAL, > + BUF_T_SMALL, > + BUF_T_NONALIGNED, > + BUF_T_LARGE, > + __BUT_T_MAX, __BUF_T_MAX?