net/smc: define a reserved CHID range for virtual ISM devices
authorWen Gu <guwen@linux.alibaba.com>
Tue, 19 Dec 2023 14:26:12 +0000 (22:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Dec 2023 20:24:33 +0000 (20:24 +0000)
commit8dd512df3c98ce8081e3541990bf849157675723
tree3641ec16c71ce079680a615bc1013593509cf474
parent00e006a2571824b2ec26b45b089ed8523ec89b73
net/smc: define a reserved CHID range for virtual ISM devices

According to virtual ISM support feature defined by SMCv2.1, CHIDs in
the range 0xFF00 to 0xFFFF are reserved for use by virtual ISM devices.

And two helpers are introduced to distinguish virtual ISM devices from
the existing platform firmware ISM devices.

Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-and-tested-by: Wenjia Zhang <wenjia@linux.ibm.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ism.h