rps: flow_dissector: Add the const for the parameter of flow_keys_have_l4
authorGao Feng <fgao@ikuai8.com>
Wed, 31 Aug 2016 03:16:22 +0000 (11:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 23:51:08 +0000 (16:51 -0700)
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>
include/net/flow_dissector.h

index f266b51..d953492 100644 (file)
@@ -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);
 }