Re: [RFC PATCH net-next 2/6] net/smc: add vendor unique experimental options area in clc handshake

From: Simon Horman
Date: Thu Aug 03 2023 - 13:46:31 EST


On Thu, Aug 03, 2023 at 09:24:18PM +0800, Guangguan Wang wrote:

...

Hi Guangguan Wang,

> @@ -987,12 +991,12 @@ static int smc_clc_send_confirm_accept(struct smc_sock *smc,
> {
> struct smc_connection *conn = &smc->conn;
> struct smc_clc_msg_accept_confirm *clc;
> - struct smc_clc_first_contact_ext fce;
> + struct smc_clc_first_contact_ext_v2x fce;
> struct smc_clc_fce_gid_ext gle;
> struct smc_clc_msg_trail trl;
> struct kvec vec[5];
> struct msghdr msg;
> - int i, len;
> + int i, len, fce_len;

Please preserve reverse xmas tree - longest line to shortest -
for local variable declarations: this is Networking code.

https://github.com/ecree-solarflare/xmastree is your friend here.

...