10000 move files · lx1036/code@e526af7 · GitHub
[go: up one dir, main page]

Skip to content

Commit e526af7

Browse files
author
shenming
committed
move files
1 parent c7d9eb1 commit e526af7

File tree

11 files changed

+7
-7
lines changed

11 files changed

+7
-7
lines changed

go/k8s/bpf/xdp-l4lb/xdp-cilium-l4lb/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,5 @@ add_executable(xdp_cilium_l4lb
103103
cilium/test/l4lb/l4lb-tc/test_l4lb.c
104104
cilium/test/l4lb/l4lb-xdp/test_xdp_l4lb.c
105105
cilium/test/l4lb/l4lb-nodeport/tc_nodeport.c
106-
cilium/test/l4lb/slb-xdp/slb.bpf.c)
106+
cilium/test/l4lb/slb-xdp/slb.bpf.c
107+
cilium/test/tcp/tcphdr/ebpf/test_tcp_hdr_options.c)

go/k8s/bpf/xdp-l4lb/xdp-cilium-l4lb/cilium/test/l4lb/l4lb-tc/test_l4lb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static __always_inline int process_packet(void *data, __u64 off, void *data_end,
215215
iph = data + off;
216216
if ((void*)(iph + 1) > data_end)
217217
return TC_ACT_SHOT;
218-
if (iph->ihl != 5) // ???
218+
if (iph->ihl != 5) // 5<=ip4->ihl<=15, ???
219219
return TC_ACT_SHOT;
220220

221221
protocol = iph->protocol;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# TCP FastOpen
33
> 作用:首次 client 在 syn TCP Option 里加上 tfo cookie request(tcp.options.tfo.request),然后 server 回的 synack 包里
44
> tfo option 里加上 Fast Open Cookie(69bd7321bdbafb15),然后后面 client 再次发起新的链接时,新的 syn 报文带上这个 cookie 和
5-
> 请求报文如 HTTP/TCP 请求,即 HTTP/TCP 请求在第二次之后直接在 sync 包里发送请求,这样无需等待 synack + ack 这一个 rtt 时间。
5+
> 请求报文如 HTTP/TCP 请求,即 HTTP/TCP 请求在第二次之后直接在 syn 包里发送请求,这样无需等待 synack + ack 这一个 rtt 时间。
66
>
77
> 结论:首次 syn 获取 tfo cookie 之后,后续每次连接 syn 直接带上数据报文,减少了一个 rtt 时间,提高了性能。
88

go/k8s/bpf/xdp-l4lb/xdp-cilium-l4lb/cilium/test/tcp/tcp-syncookie/tcp_syncookie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static inline void check_syncookie(void *ctx, void *data, void *data_end) {
9393
if ((void *)(ipv4h + 1) > data_end)
9494
return;
9595

96-
if (ipv4h->ihl != 5) { // ???
96+
if (ipv4h->ihl != 5) { // 5<=ip4->ihl<=15, ???
9797
return;
9898
}
9999

go/k8s/bpf/xdp-l4lb/xdp-cilium-l4lb/cilium/test/tcp/tcp-syncookie/tcp_syncookie.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
# syn cookie
4 9C9F +
# syn cookie(TFO?)
55
代码在:
66
```md
77
/root/linux-5.10.142/tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c

go/k8s/bpf/xdp-l4lb/xdp-cilium-l4lb/cilium/test/tcp/tcphdr/ebpf/test_tcp_hdr_options.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ static __u8 option_total_len(__u8 flags)
6868
return len + 2; /* +1 kind, +1 kind-len */
6969
}
7070

71-
static void write_test_option(const struct bpf_test_option *test_opt,
72-
__u8 *data)
71+
static void write_test_option(const struct bpf_test_option *test_opt, __u8 *data)
7372
{
7473
__u8 offset = 0;
7574

0 commit comments

Comments
 (0)
0