mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
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>
This commit is contained in:
parent
6c37e5de45
commit
18f9f1365d
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ static inline void inet_rps_reset_flow(const struct sock *sk)
|
||||||
#endif
|
#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
|
#ifdef CONFIG_RPS
|
||||||
if (unlikely(inet_sk(sk)->rxhash != rxhash)) {
|
if (unlikely(inet_sk(sk)->rxhash != rxhash)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue