Re: [PATCH net-next 5/7] net/smc: compatible with 128-bits extend GID of virtual ISM device

From: Wen Gu
Date: Thu Nov 23 2023 - 08:16:50 EST




On 2023/11/21 03:17, Jakub Kicinski wrote:
On Sun, 19 Nov 2023 21:57:55 +0800 Wen Gu wrote:
According to virtual ISM support feature defined by SMCv2.1, GIDs of
virtual ISM device are UUIDs defined by RFC4122, which are 128-bits
long. So some adaptation work is required. And note that the GIDs of
existing platform firmware ISM devices still remain 64-bits long.

sparse (C=1 build) complains:

net/smc/smc_clc.c:944:73: warning: incorrect type in argument 1 (different base types)
net/smc/smc_clc.c:944:73: expected unsigned short [usertype] chid
net/smc/smc_clc.c:944:73: got restricted __be16 [usertype] chid

It will be fixed in the next version. Thank you very much!

Thanks,
Wen Gu