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
  • tools
  • include
  • uapi
  • linux
  • bpf.h
Find file BlameHistoryPermalink
  • Martin KaFai Lau's avatar
    bpf: Add hwtstamp field for the sockops prog · 9bb05349
    Martin KaFai Lau authored Nov 07, 2022
    
    
    The bpf-tc prog has already been able to access the
    skb_hwtstamps(skb)->hwtstamp.  This patch extends the same hwtstamp
    access to the sockops prog.
    
    In sockops, the skb is also available to the bpf prog during
    the BPF_SOCK_OPS_PARSE_HDR_OPT_CB event.  There is a use case
    that the hwtstamp will be useful to the sockops prog to better
    measure the one-way-delay when the sender has put the tx
    timestamp in the tcp header option.
    
    Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
    Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
    Acked-by: default avatarYonghong Song <yhs@fb.com>
    Link: https://lore.kernel.org/bpf/20221107230420.4192307-2-martin.lau@linux.dev
    9bb05349
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7