-
I have an XDP socket dispatcher ebpf program that declares an XSK map as follows: struct {
__uint(type, BPF_MAP_TYPE_XSKMAP);
__uint(key_size, sizeof(__u32));
__uint(value_size, sizeof(__u32));
__uint(max_entries, MAX_QUEUE_IDS);
} xsks_map SEC(".maps"); And an dispatcher: SEC("xdp")
int xsk_dispatcher(struct xdp_md *ctx) {
return bpf_redirect_map(&xsks_map, ctx->rx_queue_index, XDP_PASS);
} Now, in my Go code when I do this... objs := bpfObjects{}
loadBpfObjects(&objs, nil) ...and when doing the |
Beta Was this translation helpful? Give feedback.
Answered by
binw666
Jun 19, 2024
Replies: 1 comment 1 reply
-
Yes, that's right, descriptors to programs and Maps are saved in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
thediveo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that's right, descriptors to programs and Maps are saved in
objs
. In addition, you can redefinebpfObjects{}
to decide which programs and Maps to load.