Skip to content

Commit

Permalink
rps: inet_rps_save_rxhash() argument is not const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Apr 27, 2010
1 parent 6c37e5d commit 18f9f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/inet_sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 18f9f13

Please sign in to comment.