-
Notifications
You must be signed in to change notification settings - Fork 6
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
tcp_bpf: update the rmem scheduling for ingress redirection #4522
Conversation
Upstream branch: 2aa587f |
4e4da1a
to
3a72ba0
Compare
Upstream branch: 19039f2 |
ff8361b
to
0e05bda
Compare
3a72ba0
to
0171a57
Compare
Upstream branch: 98cd619 |
0e05bda
to
45e0650
Compare
0171a57
to
8021bac
Compare
Upstream branch: db123e4 |
45e0650
to
632f142
Compare
8021bac
to
f7d2a2c
Compare
Upstream branch: 5ac9b4e |
632f142
to
4d8b477
Compare
f7d2a2c
to
1ec8e25
Compare
Upstream branch: 5ac9b4e |
4d8b477
to
c479c57
Compare
1ec8e25
to
c4a2567
Compare
Upstream branch: 42f7652 |
c479c57
to
0749c71
Compare
c4a2567
to
981ebd1
Compare
Upstream branch: a552e2e |
0749c71
to
df529ef
Compare
Upstream branch: fc39fb5 |
7ff35ae
to
17751c1
Compare
133abb9
to
758e2c3
Compare
Upstream branch: 28eb75e |
17751c1
to
40e8b4e
Compare
758e2c3
to
64bcbe2
Compare
Upstream branch: 9f16d5e |
40e8b4e
to
dce7f2a
Compare
64bcbe2
to
efd0e24
Compare
Upstream branch: 8618f5f |
dce7f2a
to
9f561c7
Compare
efd0e24
to
7a3e834
Compare
Upstream branch: 20a39ea |
9f561c7
to
c8dda78
Compare
7a3e834
to
a704d36
Compare
Upstream branch: ef3ba8c |
c8dda78
to
bcbda1e
Compare
a704d36
to
b19cdf2
Compare
Upstream branch: 6b64128 |
bcbda1e
to
4f35f7b
Compare
b19cdf2
to
ac77fa8
Compare
When bpf_tcp_ingress() is called, the skmsg is being redirected to the ingress of the destination socket. Therefore, we should charge its receive socket buffer, instead of sending socket buffer. Because sk_rmem_schedule() tests pfmemalloc of skb, we need to introduce a wrapper and call it for skmsg. Signed-off-by: Cong Wang <[email protected]>
Although we sk_rmem_schedule and add sk_msg to the ingress_msg of sk_redir in bpf_tcp_ingress, we do not update sk_rmem_alloc. As a result, except for the global memory limit, the rmem of sk_redir is nearly unlimited. Thus, add sk_rmem_alloc related logic to limit the recv buffer. Signed-off-by: Zijian Zhang <[email protected]>
Upstream branch: 6b64128 |
4f35f7b
to
633cf16
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=900001 expired. Closing PR. |
Pull request for series with
subject: tcp_bpf: update the rmem scheduling for ingress redirection
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=900001