[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20131231.155839.537215284284145712.davem@davemloft.net>
Date: Tue, 31 Dec 2013 15:58:39 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: zwu.kernel@...il.com
Cc: netdev@...r.kernel.org, therbert@...gle.com,
fengguang.wu@...el.com, wuzhy@...ux.vnet.ibm.com
Subject: Re: [net-next bugfix] net, rps: fix build failure when CONFIG_RPS
isn't set
From: David Miller <davem@...emloft.net>
Date: Tue, 31 Dec 2013 15:54:59 -0500 (EST)
> From: Zhi Yong Wu <zwu.kernel@...il.com>
> Date: Wed, 1 Jan 2014 04:31:01 +0800
>
>> @@ -846,12 +846,16 @@ static inline void sock_rps_reset_flow_hash(__u32 hash)
>>
>> static inline void sock_rps_record_flow(const struct sock *sk)
>> {
>> +#ifdef CONFIG_RPS
>> sock_rps_record_flow_hash(sk->sk_rxhash);
>> +#endif
>> }
>
> Why is this necessary? sock_rps_record_flow_hash() is provided
> unconditionally, regardless of CONFIG_RPS.
>
> I'm not applying this, it doesn't make any sense. Either there is
> no build failure, or the existing CONFIG_RPS ifdef inside of the
> implementation of sock_rps_record_flow_hash() is bogus.
Ok, if you had actually provided the build failure log message I'd be
able to evaluate this patch much better.
The real issue is the lack of sk_rxhash when RPS is not enabled.
I'm going to apply this with the build failure message mentioned.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists