-
Notifications
You must be signed in to change notification settings - Fork 111
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
export send_byte and send_recv_data #6715
Conversation
Upstream branch: 623bdd5 |
8f1ff3c
to
40276fc
Compare
Upstream branch: a70f5d8 |
59e0c0d
to
cad85e3
Compare
40276fc
to
0d65769
Compare
Upstream branch: ca4ddc2 |
cad85e3
to
abae013
Compare
0d65769
to
072341c
Compare
Upstream branch: 9dc182c |
abae013
to
9774fe4
Compare
072341c
to
3db8025
Compare
Upstream branch: 2a24e24 |
9774fe4
to
347d3e7
Compare
3db8025
to
dcd0c1f
Compare
Upstream branch: c186ed1 |
347d3e7
to
53bbf75
Compare
dcd0c1f
to
7569910
Compare
Upstream branch: ce09cbd |
53bbf75
to
1bd1843
Compare
7569910
to
8a1db0a
Compare
Upstream branch: 15ea39a |
1bd1843
to
16b6484
Compare
8a1db0a
to
3c0ee70
Compare
Upstream branch: c07b4bc |
16b6484
to
9672e98
Compare
3c0ee70
to
a31d181
Compare
The helper send_byte is defined in mptcp.c, sk_lookup.c and tcp_rtt.c. It makes sense to export it into network_helpers.h to let it can be used for all BPF selftests. Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Avoid setting total_bytes and stop as global variables, this patch adds a new struct named send_recv_arg to pass arguments between threads. Put these two variables together with fd into this struct and pass it to server thread, so that server thread can access these two variables without setting them as global ones. Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
This patch extracts the code to send and receive data into a new helper named send_recv_data() in network_helpers.c and export it in network_helpers.h. This helper will be used for MPTCP BPF selftests. Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Upstream branch: 49b73fa |
9672e98
to
dbe91e7
Compare
a31d181
to
3655a8f
Compare
Upstream branch: c53908b Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/netdevbpf/list/?series=840470
conflict:
|
2191e80
to
6970c95
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=840470 expired. Closing PR. |
Pull request for series with
subject: export send_byte and send_recv_data
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=840470