aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorJon Maloy <jmaloy@redhat.com>2024-12-10 13:36:45 -0500
committerStefano Brivio <sbrivio@redhat.com>2024-12-11 01:47:37 +0100
commite24f0262229a1f9c673dca3452ad103cbe06b866 (patch)
tree8a29785cfd4d58114c4679afe364eba638a4e298 /passt.h
parent947f5cdb93062fd4e56adbab9901bbbb8aa8b5cb (diff)
downloadpasst-e24f0262229a1f9c673dca3452ad103cbe06b866.tar
passt-e24f0262229a1f9c673dca3452ad103cbe06b866.tar.gz
passt-e24f0262229a1f9c673dca3452ad103cbe06b866.tar.bz2
passt-e24f0262229a1f9c673dca3452ad103cbe06b866.tar.lz
passt-e24f0262229a1f9c673dca3452ad103cbe06b866.tar.xz
passt-e24f0262229a1f9c673dca3452ad103cbe06b866.tar.zst
passt-e24f0262229a1f9c673dca3452ad103cbe06b866.zip
pasta: make it possible to disable socket splicing
During testing it is sometimes useful to force traffic which would normally be forwared by socket splicing through the tap interface. In this commit, we add a command switch enabling such funtionality for inbound local traffic. For outbound local traffic this is much trickier, if even possible, so leave that for a later commit. Suggested-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Jon Maloy <jmaloy@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.h')
-rw-r--r--passt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/passt.h b/passt.h
index c038630..0dd4efa 100644
--- a/passt.h
+++ b/passt.h
@@ -229,6 +229,7 @@ struct ip6_ctx {
* @no_dhcpv6: Disable DHCPv6 server
* @no_ndp: Disable NDP handler altogether
* @no_ra: Disable router advertisements
+ * @no_splice: Disable socket splicing for inbound traffic
* @host_lo_to_ns_lo: Map host loopback addresses to ns loopback addresses
* @freebind: Allow binding of non-local addresses for forwarding
* @low_wmem: Low probed net.core.wmem_max
@@ -291,6 +292,7 @@ struct ctx {
int no_dhcpv6;
int no_ndp;
int no_ra;
+ int no_splice;
int host_lo_to_ns_lo;
int freebind;