Skip to content

Commit

Permalink
Use XDP program type
Browse files Browse the repository at this point in the history
  • Loading branch information
gjulianm committed Jan 29, 2025
1 parent 33f0588 commit 662f60b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (c *mapProgHelperCache) newHelperProgramForFd(fd int) (helperProgData, erro
*/

spec := &ebpf.ProgramSpec{
Type: ebpf.SocketFilter,
Type: ebpf.XDP, // Use XDP to ensure maximum compatibility (e.g., socket filter programs cannot deal with maps that contain spin locks)
Instructions: asm.Instructions{
// entry
btf.WithFuncMetadata(
Expand Down

0 comments on commit 662f60b

Please sign in to comment.