Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions kernel/bpf/cpumap.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ static int cpu_map_bpf_prog_run_xdp(struct bpf_cpu_map_entry *rcpu,

rxq.dev = xdpf->dev_rx;
rxq.mem.type = xdpf->mem_type;
/* TODO: report queue_index to xdp_rxq_info */

/* RX queue_index is not preserved after redirection.
* If needed, the sender can embed it in XDP metadata
* (via bpf_xdp_adjust_meta) for the remote program.
*/
xdp_convert_frame_to_buff(xdpf, &xdp);

act = bpf_prog_run_xdp(rcpu->prog, &xdp);
Expand Down
Loading