Commit 66fdd05e authored by Gao Feng's avatar Gao Feng Committed by David S. Miller

rps: flow_dissector: Add the const for the parameter of flow_keys_have_l4

Add the const for the parameter of flow_keys_have_l4 for the readability.
Signed-off-by: default avatarGao Feng <fgao@ikuai8.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d001648e
...@@ -183,7 +183,7 @@ struct flow_keys_digest { ...@@ -183,7 +183,7 @@ struct flow_keys_digest {
void make_flow_keys_digest(struct flow_keys_digest *digest, void make_flow_keys_digest(struct flow_keys_digest *digest,
const struct flow_keys *flow); const struct flow_keys *flow);
static inline bool flow_keys_have_l4(struct flow_keys *keys) static inline bool flow_keys_have_l4(const struct flow_keys *keys)
{ {
return (keys->ports.ports || keys->tags.flow_label); return (keys->ports.ports || keys->tags.flow_label);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment