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 f266b512c3bdca4bf4274f2b51910aae163ade11..d9534927d93bc46005afb5214ef83c72544385b7 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);
 }