netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] tcp_bpf: update the rmem scheduling for ingress redirection
@ 2024-10-17  0:57 zijianzhang
  2024-10-17  0:57 ` [PATCH bpf 1/2] tcp_bpf: charge receive socket buffer in bpf_tcp_ingress() zijianzhang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: zijianzhang @ 2024-10-17  0:57 UTC (permalink / raw)
  To: bpf
  Cc: john.fastabend, jakub, davem, edumazet, kuba, pabeni, dsahern,
	netdev, cong.wang, zijianzhang

From: Zijian Zhang <zijianzhang@bytedance.com>

We should do sk_rmem_schedule instead of sk_wmem_schedule in function
bpf_tcp_ingress. We also need to update sk_rmem_alloc accordingly to
account for the rmem.

Cong Wang (1):
  tcp_bpf: charge receive socket buffer in bpf_tcp_ingress()

Zijian Zhang (1):
  tcp_bpf: add sk_rmem_alloc related logic for ingress redirection

 include/linux/skmsg.h | 11 ++++++++---
 include/net/sock.h    | 10 ++++++++--
 net/core/skmsg.c      |  6 +++++-
 net/ipv4/tcp_bpf.c    |  6 ++++--
 4 files changed, 25 insertions(+), 8 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-21  6:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-17  0:57 [PATCH bpf 0/2] tcp_bpf: update the rmem scheduling for ingress redirection zijianzhang
2024-10-17  0:57 ` [PATCH bpf 1/2] tcp_bpf: charge receive socket buffer in bpf_tcp_ingress() zijianzhang
2024-10-17  0:57 ` [PATCH bpf 2/2] tcp_bpf: add sk_rmem_alloc related logic for ingress redirection zijianzhang
2024-11-08  4:04   ` Cong Wang
2024-11-08 18:28     ` [External] " Zijian Zhang
2024-11-21  6:07       ` John Fastabend
2024-11-08  3:58 ` [PATCH bpf 0/2] tcp_bpf: update the rmem scheduling " Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).