summaryrefslogtreecommitdiff
path: root/tools/testing/vsock/msg_zerocopy_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/vsock/msg_zerocopy_common.c')
-rw-r--r--tools/testing/vsock/msg_zerocopy_common.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/testing/vsock/msg_zerocopy_common.c b/tools/testing/vsock/msg_zerocopy_common.c
index 5a4bdf7b5132..8622e5a0f8b7 100644
--- a/tools/testing/vsock/msg_zerocopy_common.c
+++ b/tools/testing/vsock/msg_zerocopy_common.c
@@ -14,16 +14,6 @@
#include "msg_zerocopy_common.h"
-void enable_so_zerocopy(int fd)
-{
- int val = 1;
-
- if (setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, &val, sizeof(val))) {
- perror("setsockopt");
- exit(EXIT_FAILURE);
- }
-}
-
void vsock_recv_completion(int fd, const bool *zerocopied)
{
struct sock_extended_err *serr;