Skip to content

af_xdp: Suffix the XSP map pin paths#314

Open
zhuyifei1999 wants to merge 1 commit intoXilinx-CNS:masterfrom
zhuyifei1999:suffix_xskmap_pin
Open

af_xdp: Suffix the XSP map pin paths#314
zhuyifei1999 wants to merge 1 commit intoXilinx-CNS:masterfrom
zhuyifei1999:suffix_xskmap_pin

Conversation

@zhuyifei1999
Copy link
Copy Markdown
Contributor

Each XSK and XDP prog are bound to a specific nic, so load the prog multiple times, once for each NIC, and distinguish the XSKMAPs with the ifname.

Updated API from bpf_object__pin_maps to bpf_map__pin in order to specify the exact map to pin and the target file path; the former API would use a filename matching the map name and would not suffix the ifname.

@zhuyifei1999 zhuyifei1999 requested a review from a team as a code owner December 29, 2025 22:45
Copy link
Copy Markdown
Contributor

@sianj-xilinx sianj-xilinx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Could you either fix the XSP typo in the commit message, or let me know if you're happy for me to do so and I'll amend it before merge.

Each XSK and XDP prog are bound to a specific nic, so load the prog
multiple times, once for each NIC, and distinguish the XSKMAPs with
the ifname.

Updated API from bpf_object__pin_maps to bpf_map__pin in order to
specify the exact map to pin and the target file path; the former
API would use a filename matching the map name and would not suffix
the ifname.

Signed-off-by: YiFei Zhu <zhuyifei@google.com>
@zhuyifei1999
Copy link
Copy Markdown
Contributor Author

Oops, this too. Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants