Skip to content

Share bpf map between different XDP programs running on different interfaces #344

@NirGeller18

Description

@NirGeller18

Hi there,

I need to share 1 bpf map between 2 different XDP programs loaded on 2 different interfaces.
I understand how a map can be shared with a userspace program, but how can one XDP program gain access to a map that was created previously by a different XDP program?

I need to invoke bpf_map_lookup_elem() in the context of one program and get data that was updated by another.
Can this be done? is there a working example?

Thanks a lot,

Nir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions