samples/bpf: xdp2skb_meta comment explain why pkt-data pointers are invalidated
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 17 Jan 2018 10:17:37 +0000 (11:17 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 18 Jan 2018 00:49:09 +0000 (01:49 +0100)
commite2e3224122e64ebe15fe02a63e8fe09b64a8c743
tree398e462dd9fa548b6700ba04de9177c6391a27be
parentcda18e9726d0f1e280f9e4a19d85ab01c157b414
samples/bpf: xdp2skb_meta comment explain why pkt-data pointers are invalidated

Improve the 'unknown reason' comment, with an actual explaination of why
the ctx pkt-data pointers need to be loaded after the helper function
bpf_xdp_adjust_meta().  Based on the explaination Daniel gave.

Fixes: 36e04a2d78d9 ("samples/bpf: xdp2skb_meta shows transferring info from XDP to SKB")
Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/xdp2skb_meta_kern.c