summaryrefslogtreecommitdiffstats
path: root/include/linux/filter.h
diff options
context:
space:
mode:
authorStanislav Fomichev2019-07-15 18:39:52 +0200
committerDaniel Borkmann2019-07-15 23:15:53 +0200
commitb43995469e5804636a55372e9bbb17ccb22441c5 (patch)
tree4839bae3945c253fc37e26c3f8490e538546766c /include/linux/filter.h
parentsamples/bpf: build with -D__TARGET_ARCH_$(SRCARCH) (diff)
downloadkernel-qcow2-linux-b43995469e5804636a55372e9bbb17ccb22441c5.tar.gz
kernel-qcow2-linux-b43995469e5804636a55372e9bbb17ccb22441c5.tar.xz
kernel-qcow2-linux-b43995469e5804636a55372e9bbb17ccb22441c5.zip
bpf: rename bpf_ctx_wide_store_ok to bpf_ctx_wide_access_ok
Rename bpf_ctx_wide_store_ok to bpf_ctx_wide_access_ok to indicate that it can be used for both loads and stores. Cc: Yonghong Song <yhs@fb.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/filter.h')
-rw-r--r--include/linux/filter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h
index 6d944369ca87..ff65d22cf336 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -747,7 +747,7 @@ bpf_ctx_narrow_access_ok(u32 off, u32 size, u32 size_default)
return size <= size_default && (size & (size - 1)) == 0;
}
-#define bpf_ctx_wide_store_ok(off, size, type, field) \
+#define bpf_ctx_wide_access_ok(off, size, type, field) \
(size == sizeof(__u64) && \
off >= offsetof(type, field) && \
off + sizeof(__u64) <= offsetofend(type, field) && \