summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGao Feng <fgao@ikuai8.com>2016-08-31 03:16:22 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-09-01 23:51:08 (GMT)
commit66fdd05e7a85564f86d9b220de946aa98e8bc048 (patch)
treec92bbfb740fa3c6b3241357cb18fc9b435e463c1
parentd001648ec7cf8b21ae9eec8b9ba4a18295adfb14 (diff)
downloadlinux-66fdd05e7a85564f86d9b220de946aa98e8bc048.tar.xz
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>
-rw-r--r--include/net/flow_dissector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h
index f266b51..d953492 100644
--- a/include/net/flow_dissector.h
+++ b/include/net/flow_dissector.h
@@ -183,7 +183,7 @@ struct flow_keys_digest {
void make_flow_keys_digest(struct flow_keys_digest *digest,
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);
}