Displaying 1 result from an estimated 1 matches for "run_send".
Did you mean:
win_send
2023 Feb 16
0
[RFC PATCH v1 12/12] test/vsock: MSG_ZEROCOPY support for vsock_perf
...derr, "warning: copy instead of zerocopy\n");
>+}
>+
>+static void enable_so_zerocopy(int fd)
>+{
>+ int val = 1;
>+
>+ if (setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, &val, sizeof(val)))
>+ error("setsockopt(SO_ZEROCOPY)");
>+}
>+
> static void run_sender(int peer_cid, unsigned long to_send_bytes)
> {
> time_t tx_begin_ns;
> time_t tx_total_ns;
> size_t total_send;
>+ time_t time_in_send;
> void *data;
> int fd;
>
>- printf("Run as sender\n");
>+ if (zerocopy)
>+ printf("Run as sender MSG_ZEROC...