瀏覽代碼

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>
Eric Dumazet 15 年之前
父節點
當前提交
18f9f1365d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/net/inet_sock.h

+ 1 - 1
include/net/inet_sock.h

@@ -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)) {