History

bpf: simplify xdp_convert_ctx_access for xdp_rxq_info

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.

Jesper Dangaard Brouer committed 8 years ago

Commit daaf24c1 parent 6bd39bc2 files · +4 −5Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−1
@@ -899,7 +899,7 @@ struct xdp_md { · 898 unmodified lines
899899 __u32 data;
900900 __u32 data_end;
901901 __u32 data_meta;
902− /* Below access go though struct xdp_rxq_info */
902+ /* Below access go through struct xdp_rxq_info */
903903 __u32 ingress_ifindex; /* rxq->dev->ifindex */
904904 __u32 rx_queue_index; /* rxq->queue_index */
905905 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t