Skip to content

af_xdp: Resize the XSPMAP to num of rxq in xdp_onload_prepare#322

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

af_xdp: Resize the XSPMAP to num of rxq in xdp_onload_prepare#322
zhuyifei1999 wants to merge 1 commit intoXilinx-CNS:masterfrom
zhuyifei1999:xskmap_dyn_size

Conversation

@zhuyifei1999
Copy link
Copy Markdown
Contributor

xdp_tstamp.c currectly hardcodes the XSKMAP size to 4, but it redirects to XSKs based on ctx->rx_queue_index. We can look up the number of queues with an ethtool ioctl and resize the XSKMAP before loading the map into the kernel.

The non-xdp_tstamp path works fine because xdp_map_create in efhw/af_xdp.c creates max_entries = nic->vi_lim.

@zhuyifei1999 zhuyifei1999 requested a review from a team as a code owner March 26, 2026 21:03
xdp_tstamp.c currectly hardcodes the XSKMAP size to 4, but it
redirects to XSKs based on ctx->rx_queue_index. We can look up
the number of queues with an ethtool ioctl and resize the XSKMAP
before loading the map into the kernel.

The non-xdp_tstamp path works fine because xdp_map_create in
efhw/af_xdp.c creates max_entries = nic->vi_lim.

Signed-off-by: YiFei Zhu <zhuyifei@google.com>
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.

1 participant