[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240730185844.GI1967603@kernel.org>
Date: Tue, 30 Jul 2024 19:58:44 +0100
From: Simon Horman <horms@...nel.org>
To: Zhengchao Shao <shaozhengchao@...wei.com>
Cc: linux-s390@...r.kernel.org, netdev@...r.kernel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
wenjia@...ux.ibm.com, jaka@...ux.ibm.com, alibuda@...ux.alibaba.com,
tonylu@...ux.alibaba.com, guwen@...ux.alibaba.com,
weiyongjun1@...wei.com, yuehaibing@...wei.com
Subject: Re: [PATCH net-next 3/4] net/smc: remove redundant code in
smc_connect_check_aclc
On Tue, Jul 30, 2024 at 09:25:05AM +0800, Zhengchao Shao wrote:
> When the SMC client perform CLC handshake, it will check whether
> the clc header type is correct in receiving SMC_CLC_ACCEPT packet.
> The specific invoking path is as follows:
> __smc_connect
> smc_connect_clc
> smc_clc_wait_msg
> smc_clc_msg_hdr_valid
> smc_clc_msg_acc_conf_valid
> Therefore, the smc_connect_check_aclc interface invoked by
> __smc_connect does not need to check type again.
>
> Signed-off-by: Zhengchao Shao <shaozhengchao@...wei.com>
Thanks, I agree that in the case of a SMC_CLC_ACCEPT packet,
which is the case here, this check is unnecessary as it
has already been performed by smc_clc_msg_acc_conf_valid().
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists