Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • bpf_doc.py
Find file BlameHistoryPermalink
  • Geliang Tang's avatar
    bpf: Add bpf_skc_to_mptcp_sock_proto · 3bc253c2
    Geliang Tang authored May 19, 2022
    
    
    This patch implements a new struct bpf_func_proto, named
    bpf_skc_to_mptcp_sock_proto. Define a new bpf_id BTF_SOCK_TYPE_MPTCP,
    and a new helper bpf_skc_to_mptcp_sock(), which invokes another new
    helper bpf_mptcp_sock_from_subflow() in net/mptcp/bpf.c to get struct
    mptcp_sock from a given subflow socket.
    
    v2: Emit BTF type, add func_id checks in verifier.c and bpf_trace.c,
    remove build check for CONFIG_BPF_JIT
    v5: Drop EXPORT_SYMBOL (Martin)
    
    Co-developed-by: default avatarNicolas Rybowski <nicolas.rybowski@tessares.net>
    Co-developed-by: default avatarMatthieu Baerts <matthieu.baerts@tessares.net>
    Signed-off-by: default avatarNicolas Rybowski <nicolas.rybowski@tessares.net>
    Signed-off-by: default avatarMatthieu Baerts <matthieu.baerts@tessares.net>
    Signed-off-by: default avatarGeliang Tang <geliang.tang@suse.com>
    Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/bpf/20220519233016.105670-2-mathew.j.martineau@linux.intel.com
    3bc253c2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7