Re: [PATCH liburing 4/4] tests/zc: name buffer flavours

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/5/22 16:00, Dylan Yudaken wrote:
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?

eh, should've been. I think I'll just kill it in a resend.

--
Pavel Begunkov



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux