Skip to content

Commit 66fdd05

Browse files
gfreewinddavem330
authored andcommitted
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: Gao Feng <fgao@ikuai8.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d001648 commit 66fdd05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/flow_dissector.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ struct flow_keys_digest {
183183
void make_flow_keys_digest(struct flow_keys_digest *digest,
184184
const struct flow_keys *flow);
185185

186-
static inline bool flow_keys_have_l4(struct flow_keys *keys)
186+
static inline bool flow_keys_have_l4(const struct flow_keys *keys)
187187
{
188188
return (keys->ports.ports || keys->tags.flow_label);
189189
}

0 commit comments

Comments
 (0)