[RFC mptcp-next v2 0/2] BPF packet scheduler updates part 4

Geliang Tang posted 2 patches 8 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/multipath-tcp/mptcp_net-next tags/patchew/cover.1692788531.git.geliang.tang@suse.com
Maintainers: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Matthieu Baerts <matthieu.baerts@tessares.net>, Mat Martineau <martineau@kernel.org>
There is a newer version of this series
include/net/bpf_sk_storage.h |  7 +++++
net/core/bpf_sk_storage.c    |  2 +-
net/mptcp/protocol.c         |  8 ++---
net/mptcp/protocol.h         |  2 ++
net/mptcp/sched.c            | 57 ++++++++++++++++++++++++++++++++++++
5 files changed, 71 insertions(+), 5 deletions(-)
[RFC mptcp-next v2 0/2] BPF packet scheduler updates part 4
Posted by Geliang Tang 8 months, 1 week ago
v2:
 - keep sched API unchanged.
 - use bpf_sk_storage_lookup to get snd_burst from BPF context.
 - applied after "add bpf_stale scheduler v3" serise.

v1:

There's a bug in bpf_burst. snd_burst stored in mptcp_burst_storage in
BPF context is not used. msk->snd_burst is still used in kernel space.
To fix this, add two new interfaces in mptcp_sched_ops to get and set
scheduler's paramters from BPF context to kernel space.

Geliang Tang (2):
  mptcp: add set/get params wrappers
  mptcp: add bpf_burst set/get params

 include/net/bpf_sk_storage.h |  7 +++++
 net/core/bpf_sk_storage.c    |  2 +-
 net/mptcp/protocol.c         |  8 ++---
 net/mptcp/protocol.h         |  2 ++
 net/mptcp/sched.c            | 57 ++++++++++++++++++++++++++++++++++++
 5 files changed, 71 insertions(+), 5 deletions(-)

-- 
2.35.3