As pointed out by Daniel Borkmann, using bpf_target_off() is not necessary for xdp_rxq_info when extracting queue_index and ifindex, as these members are u32 like BPF_W. Also fix trivial spelling mistake introduced in same commit.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -899,7 +899,7 @@ struct xdp_md { · 898 unmodified lines | ||
| 899 | 899 | __u32 data; |
| 900 | 900 | __u32 data_end; |
| 901 | 901 | __u32 data_meta; |
| 902 | − /* Below access go though struct xdp_rxq_info */ | |
| 902 | + /* Below access go through struct xdp_rxq_info */ | |
| 903 | 903 | __u32 ingress_ifindex; /* rxq->dev->ifindex */ |
| 904 | 904 | __u32 rx_queue_index; /* rxq->queue_index */ |
| 905 | 905 | }; |