[PATCH mptcp-next v2 0/9] use bpf_iter in bpf schedulers

Geliang Tang posted 9 patches 2 months, 2 weeks ago
Failed in applying to current master (apply log)
There is a newer version of this series
include/net/mptcp.h                           |  2 -
net/mptcp/bpf.c                               | 19 ++---
net/mptcp/protocol.h                          |  3 -
net/mptcp/sched.c                             | 22 ------
tools/testing/selftests/bpf/progs/mptcp_bpf.h |  2 +-
.../selftests/bpf/progs/mptcp_bpf_bkup.c      | 16 +---
.../selftests/bpf/progs/mptcp_bpf_burst.c     | 78 +++++++++----------
.../selftests/bpf/progs/mptcp_bpf_first.c     |  8 +-
.../selftests/bpf/progs/mptcp_bpf_red.c       |  8 +-
.../selftests/bpf/progs/mptcp_bpf_rr.c        | 24 +++---
10 files changed, 68 insertions(+), 114 deletions(-)
[PATCH mptcp-next v2 0/9] use bpf_iter in bpf schedulers
Posted by Geliang Tang 2 months, 2 weeks ago
From: Geliang Tang <tanggeliang@kylinos.cn>

v2:
 - update bpf_rr and bpf_burst

With the newly added mptcp_subflow bpf_iter, we can get rid of the
subflows array "contexts" in struct mptcp_sched_data. This set 
uses bpf_for_each(mptcp_subflow) helper to update all the bpf
schedules:

	bpf_for_each(mptcp_subflow, subflow, msk) {
		... ...
		mptcp_subflow_set_scheduled(subflow, true);
	}

Depends on:
 - "add mptcp_subflow bpf_iter" v8

Geliang Tang (9):
  Squash to "bpf: Add bpf_mptcp_sched_kfunc_set"
  Squash to "selftests/bpf: Add bpf_first scheduler & test"
  Squash to "selftests/bpf: Add bpf_bkup scheduler & test"
  Squash to "selftests/bpf: Add bpf_rr scheduler & test"
  Squash to "selftests/bpf: Add bpf_red scheduler & test"
  Squash to "bpf: Export more bpf_burst related functions"
  Squash to "selftests/bpf: Add bpf_burst scheduler & test"
  Revert "mptcp: add sched_data helpers"
  mptcp: drop subflow contexts in mptcp_sched_data

 include/net/mptcp.h                           |  2 -
 net/mptcp/bpf.c                               | 19 ++---
 net/mptcp/protocol.h                          |  3 -
 net/mptcp/sched.c                             | 22 ------
 tools/testing/selftests/bpf/progs/mptcp_bpf.h |  2 +-
 .../selftests/bpf/progs/mptcp_bpf_bkup.c      | 16 +---
 .../selftests/bpf/progs/mptcp_bpf_burst.c     | 78 +++++++++----------
 .../selftests/bpf/progs/mptcp_bpf_first.c     |  8 +-
 .../selftests/bpf/progs/mptcp_bpf_red.c       |  8 +-
 .../selftests/bpf/progs/mptcp_bpf_rr.c        | 24 +++---
 10 files changed, 68 insertions(+), 114 deletions(-)

-- 
2.43.0