Re: [PATCH net-next v5 4/5] vsock/test: Introduce enable_so_linger() helper

2025-05-21 Thread Michal Luczaj
On 5/21/25 16:41, Stefano Garzarella wrote: > On Wed, May 21, 2025 at 12:55:22AM +0200, Michal Luczaj wrote: >> ... >> static void test_stream_linger_client(const struct test_opts *opts) >> { >> -struct linger optval = { >> -.l_onoff = 1, >> -.l_linger = 1 > > So, we ar

Re: [PATCH net-next v5 4/5] vsock/test: Introduce enable_so_linger() helper

2025-05-21 Thread Stefano Garzarella
On Wed, May 21, 2025 at 12:55:22AM +0200, Michal Luczaj wrote: Add a helper function that sets SO_LINGER. Adapt the caller. Signed-off-by: Michal Luczaj --- tools/testing/vsock/util.c | 13 + tools/testing/vsock/util.h | 4 tools/testing/vsock/vsock_test.c | 10 +

[PATCH net-next v5 4/5] vsock/test: Introduce enable_so_linger() helper

2025-05-20 Thread Michal Luczaj
Add a helper function that sets SO_LINGER. Adapt the caller. Signed-off-by: Michal Luczaj --- tools/testing/vsock/util.c | 13 + tools/testing/vsock/util.h | 4 tools/testing/vsock/vsock_test.c | 10 +- 3 files changed, 18 insertions(+), 9 deletions(-) diff