Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-de
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-de
  • Repository
Switch branch/tag
  • linux-de
  • include
  • net
  • sock.h
Find file BlameHistoryPermalink
  • Eric Dumazet's avatar
    net: sk_pacing_shift_update() helper · c9f1f58d
    Eric Dumazet authored Dec 12, 2017
    In commit 3a9b76fd
    
     ("tcp: allow drivers to tweak TSQ logic")
    I gave a code sample to set sk->sk_pacing_shift that was not complete.
    
    Better add a helper that can be used by drivers without worries,
    and maybe amended in the future.
    
    A wifi driver might use it from its ndo_start_xmit()
    
    Following call would setup TCP to allow up to ~8ms of queued data per
    flow.
    
    sk_pacing_shift_update(skb->sk, 7);
    
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c9f1f58d