diff options
author | Alexander Lobakin <alobakin@pm.me> | 2021-03-14 12:11:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-14 22:46:32 +0100 |
commit | dac06b32c705dc8824479b03eee826b4f6615ab2 (patch) | |
tree | b009674e3235df1cff8c6bb67a7cd433f3200a58 | |
parent | Merge branch 'gro-micro-optimize-dev_gro_receive' (diff) | |
download | linux-dac06b32c705dc8824479b03eee826b4f6615ab2.tar.xz linux-dac06b32c705dc8824479b03eee826b4f6615ab2.zip |
flow_dissector: constify bpf_flow_dissector's data pointers
BPF Flow dissection programs are read-only and don't touch input
buffers.
Mark 'data' and 'data_end' in struct bpf_flow_dissector as const
in preparation for global input constifying.
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/flow_dissector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h index cc10b10dc3a1..bf00e71816ed 100644 --- a/include/net/flow_dissector.h +++ b/include/net/flow_dissector.h @@ -368,8 +368,8 @@ static inline void *skb_flow_dissector_target(struct flow_dissector *flow_dissec struct bpf_flow_dissector { struct bpf_flow_keys *flow_keys; const struct sk_buff *skb; - void *data; - void *data_end; + const void *data; + const void *data_end; }; static inline void |