New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cilium, bigtcp: Make probing for GRO/GSO max size more graceful #26385
Conversation
Just some tiny tweaks, that's all. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc @haiyuewa, could you test this for ice case? Thanks! |
e58c147
to
23d1071
Compare
This would in particular help drivers which do not have bigTCPGSOMaxSize of 196608, for example, ice. Lower the maximum if BIG TCP is supported and smaller than the default of 196608. We might make the bigTCP{GSO,GRO}MaxSize also manually tweakable in future. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
23d1071
to
801e8d6
Compare
/test |
@borkmann Cool, small code, big improvement: IPv4 BIG TCP, IPv6 BIG TCP disabled: kubectl exec netperf-client -- netperf -t TCP_RR -H ${NETPERF_SERVER_IPV4} -- -r80000:80000 -O MIN_LATENCY,P90_LATENCY,P99_LATENCY,THROUGHPUT ============================================ IPv4 BIG TCP, IPv6 BIG TCP enabled: kubectl -n kube-system logs ds/cilium 2>&1 | grep "big-tcp" kubectl exec netperf-server -- ip -d -j link show dev eth0 | jq -c '.[0].gso_max_size' kubectl exec netperf-client -- ip -d -j link show dev eth0 | jq -c '.[0].gso_max_size' ip -d -j link show dev enp0 | jq -c '.[0].gso_max_size' ip -d -j link show dev enp0 | jq -c '.[0].gso_ipv4_max_size' kubectl exec netperf-client -- netperf -t TCP_RR -H ${NETPERF_SERVER_IPV6} -- -r80000:80000 -O MIN_LATENCY,P90_LATENCY,P99_LATENCY,THROUGHPUT kubectl exec netperf-client -- netperf -t TCP_RR -H ${NETPERF_SERVER_IPV4} -- -r80000:80000 -O MIN_LATENCY,P90_LATENCY,P99_LATENCY,THROUGHPUT |
Awesome, thanks @haiyuewa! |
Now that we support lowering GRO/GSO, we can also add ice. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Tested-by: Haiyue Wang <haiyue.wang@intel.com>
(CI all green, no code change. Adding a small doc update to list ice.) |
See commits.