s390/ism: Introduce struct ism_dmb
authorStefan Raspl <raspl@linux.ibm.com>
Mon, 23 Jan 2023 18:17:47 +0000 (19:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2023 09:46:48 +0000 (09:46 +0000)
commit1baedb13f1d50ae8c7852134fdf934b4463e9baa
tree6db6f8ba24534ba4c51974020a5a957a0d8e70e5
parent462502ff9acb7bb02405e3e486428472db7c48dc
s390/ism: Introduce struct ism_dmb

Conceptually, a DMB is a structure that belongs to ISM devices. However,
SMC currently 'owns' this structure. So future exploiters of ISM devices
would be forced to include SMC headers to work - which is just weird.
Therefore, we switch ISM to struct ism_dmb, introduce a new public header
with the definition (will be populated with further API calls later on),
and, add a thin wrapper to please SMC. Since structs smcd_dmb and ism_dmb
are identical, we can simply convert between the two for now.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Jan Karcher <jaka@linux.ibm.com>
Signed-off-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/ism.h
drivers/s390/net/ism_drv.c
include/linux/ism.h [new file with mode: 0644]