summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-04-27 04:42:51 +0200
committerDavid S. Miller <davem@davemloft.net>2010-04-27 21:53:25 +0200
commit18f9f1365dad1237072d360bc487d8c7a1cae532 (patch)
tree602a20bf3afd2a23969a82cc1431916294a5c4e9 /include
parentTCP: avoid to send keepalive probes if receiving data (diff)
downloadlinux-18f9f1365dad1237072d360bc487d8c7a1cae532.tar.xz
linux-18f9f1365dad1237072d360bc487d8c7a1cae532.zip
rps: inet_rps_save_rxhash() argument is not const
const qualifier on sock argument is misleading, since we can modify rxhash. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/net/inet_sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h
index b487bc1b99ab..c1d42957b86b 100644
--- a/include/net/inet_sock.h
+++ b/include/net/inet_sock.h
@@ -248,7 +248,7 @@ static inline void inet_rps_reset_flow(const struct sock *sk)
#endif
}
-static inline void inet_rps_save_rxhash(const struct sock *sk, u32 rxhash)
+static inline void inet_rps_save_rxhash(struct sock *sk, u32 rxhash)
{
#ifdef CONFIG_RPS
if (unlikely(inet_sk(sk)->rxhash != rxhash)) {