summaryrefslogtreecommitdiff
path: root/include/net/smc.h
diff options
context:
space:
mode:
authorJulian Ruess <julianr@linux.ibm.com>2025-09-18 13:05:00 +0200
committerPaolo Abeni <pabeni@redhat.com>2025-09-23 11:13:22 +0200
commita612dbe8d04d47af91fa88f0599c1370cc70f687 (patch)
tree5f41786c0a326df97597a23030358eceb0ca5286 /include/net/smc.h
parentcc21191b584c6f7836b0f10774f8278b7cbfba10 (diff)
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: Julian Ruess <julianr@linux.ibm.com> Co-developed-by: Alexandra Winter <wintera@linux.ibm.com> Signed-off-by: Alexandra Winter <wintera@linux.ibm.com> Link: https://patch.msgid.link/20250918110500.1731261-15-wintera@linux.ibm.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net/smc.h')
-rw-r--r--include/net/smc.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/net/smc.h b/include/net/smc.h
index 8e3debcf7db5..08bee529ed8d 100644
--- a/include/net/smc.h
+++ b/include/net/smc.h
@@ -16,7 +16,6 @@
#include <linux/types.h>
#include <linux/wait.h>
#include <linux/dibs.h>
-#include "linux/ism.h"
struct sock;
@@ -28,28 +27,14 @@ struct smc_hashinfo {
};
/* SMCD/ISM device driver interface */
-#define ISM_EVENT_DMB 0
-#define ISM_EVENT_GID 1
-#define ISM_EVENT_SWR 2
-
#define ISM_RESERVED_VLANID 0x1FFF
-struct smcd_dev;
-
struct smcd_gid {
u64 gid;
u64 gid_ext;
};
-struct smcd_ops {
- /* optional operations */
- int (*signal_event)(struct smcd_dev *dev, struct smcd_gid *rgid,
- u32 trigger_irq, u32 event_code, u64 info);
-};
-
struct smcd_dev {
- const struct smcd_ops *ops;
- void *priv;
struct dibs_dev *dibs;
struct list_head list;
spinlock_t lock;