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
  • include
  • linux
  • netdevice.h
Find file BlameHistoryPermalink
  • John Fastabend's avatar
    xdp: add bpf_redirect helper function · 814abfab
    John Fastabend authored Jul 17, 2017
    
    
    This adds support for a bpf_redirect helper function to the XDP
    infrastructure. For now this only supports redirecting to the egress
    path of a port.
    
    In order to support drivers handling a xdp_buff natively this patches
    uses a new ndo operation ndo_xdp_xmit() that takes pushes a xdp_buff
    to the specified device.
    
    If the program specifies either (a) an unknown device or (b) a device
    that does not support the operation a BPF warning is thrown and the
    XDP_ABORTED error code is returned.
    
    Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
    Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Acked-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    814abfab
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7