Commit a612dbe8 authored by Julian Ruess's avatar Julian Ruess Committed by Paolo Abeni
Browse files

dibs: Move event handling to dibs layer



Add defines for all event types and subtypes an ism device is known to
produce as it can be helpful for debugging purposes.

Introduces a generic 'struct dibs_event' and adopt ism device driver
and smc-d client accordingly. Tolerate and ignore other type and subtype
values to enable future device extensions.

SMC-D and ISM are now independent.
struct ism_dev can be moved to drivers/s390/net/ism.h.

Note that in smc, the term 'ism' is still used. Future patches could
replace that with 'dibs' or 'smc-d' as appropriate.

Signed-off-by: default avatarJulian Ruess <julianr@linux.ibm.com>
Co-developed-by: default avatarAlexandra Winter <wintera@linux.ibm.com>
Signed-off-by: default avatarAlexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/20250918110500.1731261-15-wintera@linux.ibm.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent cc21191b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -17580,7 +17580,6 @@ F: include/linux/fddidevice.h
F:	include/linux/hippidevice.h
F:	include/linux/if_*
F:	include/linux/inetdevice.h
F:	include/linux/ism.h
F:	include/linux/netdev*
F:	include/linux/platform_data/wiznet.h
F:	include/uapi/linux/cn_proc.h
@@ -22237,7 +22236,6 @@ L: linux-s390@vger.kernel.org
L:	netdev@vger.kernel.org
S:	Supported
F:	drivers/s390/net/
F:	include/linux/ism.h
S390 PCI SUBSYSTEM
M:	Niklas Schnelle <schnelle@linux.ibm.com>
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@ CONFIG_XFRM_USER=m
CONFIG_NET_KEY=m
CONFIG_DIBS=y
CONFIG_DIBS_LO=y
CONFIG_SMC=m
CONFIG_SMC_DIAG=m
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
+1 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ CONFIG_XFRM_USER=m
CONFIG_NET_KEY=m
CONFIG_DIBS=y
CONFIG_DIBS_LO=y
CONFIG_SMC=m
CONFIG_SMC_DIAG=m
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ int dibs_unregister_client(struct dibs_client *client)
				goto err_reg_dmb;
			}
		}
		/* Stop forwarding IRQs */
		/* Stop forwarding IRQs and events */
		dibs->subs[client->id] = NULL;
		spin_unlock_irqrestore(&dibs->lock, flags);
		clients[client->id]->ops->del_dev(dibs);
+0 −1
Original line number Diff line number Diff line
@@ -82,7 +82,6 @@ config CCWGROUP
config ISM
	tristate "Support for ISM vPCI Adapter"
	depends on PCI && DIBS
	imply SMC
	default n
	help
	  Select this option if you want to use the Internal Shared Memory
Loading