Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-vm
  • 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-vm
  • Repository
Switch branch/tag
  • linux-vm
  • arch
  • arm
  • net
  • bpf_jit_32.h
Find file BlameHistoryPermalink
  • Mircea Gherzan's avatar
    ARM: 7259/3: net: JIT compiler for packet filters · ddecdfce
    Mircea Gherzan authored Mar 16, 2012
    
    
    Based of Matt Evans's PPC64 implementation.
    
    The compiler generates ARM instructions but interworking is
    supported for Thumb2 kernels.
    
    Supports both little and big endian. Unaligned loads are emitted
    for ARMv6+. Not all the BPF opcodes that deal with ancillary data
    are supported. The scratch memory of the filter lives on the stack.
    Hardware integer division is used if it is available.
    
    Enabled in the same way as for x86-64 and PPC64:
    
    	echo 1 > /proc/sys/net/core/bpf_jit_enable
    
    A value greater than 1 enables opcode output.
    
    Signed-off-by: default avatarMircea Gherzan <mgherzan@gmail.com>
    Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
    Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    ddecdfce