BCC: python: support fmod_ret
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 4 repliesIn review
- v12 patches 8 repliesSuperseded
Changes in v2 from the cover letter
- change the name of the tool to 'mptcpify'
- fix the code style problems in mptcpify.py
- modify 'support_fmod_ret' in __init__.py, add some comment and ask for suggestions to BCC devs.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | BCC: Python: Support 'fmod_ret' method for eBPFsrc/ | +34 | 2 replies | |
| 2/2 | BCC: python: add a useful tool for mptcptools/ tools/ | +102 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Patch, v2, 0/2] BCC: python: support fmod_ret
Support fmod_ret, and add a useful tool for mptcp, also the interface can be verified with this function.
------
Changelog:
v2:
- change the name of the tool to 'mptcpify'
- fix the code style problems in mptcpify.py
- modify 'support_fmod_ret' in __init__.py, add some comment and ask for suggestions to BCC devs.
Hi Matt:
So nice to recieve your reply. Do you think we can create a PR with v2 patch to BCC now? The description of PR is attached below, Can you help me to take a look?
'''
Multipath TCP (MPTCP) serves as an enhancement to the conventional TCP protocol, enabling a single transport-layer connection to leverage multiple network interfaces. This capability makes MPTCP advantageous for applications requiring bandwidth consolidation, seamless failover mechanisms, and more robust connectivity solutions.
Linux kernel starts to support MPTCP since v5.6, and it provides a fmod_ret interface 'update_socket_protocol' to force applications using MPTCP instead of TCP without modifyiing its code.
So these patches provide a tool named 'mptcpify' which can achieve this. Using python-BCC is a more easy way for future development, so it is so important to support 'fmod_ret' in python-BCC.
@matttbe from the MPTCP kernel team had a look at the new tool. '''
Gang Yan (2):
BCC: Python: Support 'fmod_ret' method for eBPF
BCC: python: add a useful tool for mptcp
src/python/bcc/__init__.py | 34 ++++++++++++++++ tools/mptcpify.py | 80 ++++++++++++++++++++++++++++++++++++++ tools/mptcpify.txt | 22 +++++++++++ 3 files changed, 136 insertions(+) create mode 100644 tools/mptcpify.py create mode 100644 tools/mptcpify.txt
Signature · 1 line
2.25.1