hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/include/net/smc.h
....@@ -37,6 +37,10 @@
3737 #define ISM_EVENT_GID 1
3838 #define ISM_EVENT_SWR 2
3939
40
+#define ISM_RESERVED_VLANID 0x1FFF
41
+
42
+#define ISM_ERROR 0xFFFF
43
+
4044 struct smcd_event {
4145 u32 type;
4246 u32 code;
....@@ -61,6 +65,8 @@
6165 int (*move_data)(struct smcd_dev *dev, u64 dmb_tok, unsigned int idx,
6266 bool sf, unsigned int offset, void *data,
6367 unsigned int size);
68
+ void (*get_system_eid)(struct smcd_dev *dev, u8 **eid);
69
+ u16 (*get_chid)(struct smcd_dev *dev);
6470 };
6571
6672 struct smcd_dev {
....@@ -74,6 +80,12 @@
7480 struct list_head vlan;
7581 struct workqueue_struct *event_wq;
7682 u8 pnetid[SMC_MAX_PNETID_LEN];
83
+ bool pnetid_by_user;
84
+ struct list_head lgr_list;
85
+ spinlock_t lgr_lock;
86
+ atomic_t lgr_cnt;
87
+ wait_queue_head_t lgrs_deleted;
88
+ u8 going_away : 1;
7789 };
7890
7991 struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name,