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
  • linux
  • net
  • core
  • dev.c
Find file BlameHistoryPermalink
  • Daniel Borkmann's avatar
    bpf, xdp: allow to pass flags to dev_change_xdp_fd · 85de8576
    Daniel Borkmann authored Nov 28, 2016
    
    
    Add an IFLA_XDP_FLAGS attribute that can be passed for setting up
    XDP along with IFLA_XDP_FD, which eventually allows user space to
    implement typical add/replace/delete logic for programs. Right now,
    calling into dev_change_xdp_fd() will always replace previous programs.
    
    When passed XDP_FLAGS_UPDATE_IF_NOEXIST, we can handle this more
    graceful when requested by returning -EBUSY in case we try to
    attach a new program, but we find that another one is already
    attached. This will be used by upcoming front-end for iproute2 as
    well.
    
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    85de8576
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7