net/smc: add generic netlink support for system EID
With SMC-Dv2 users can configure if the static system EID should be used during CLC handshake, or if only user EIDs are allowed. Add generic netlink support to enable and disable the system EID, and to retrieve the system EID and its current enabled state. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Reviewed-by: Guvenc Gulce <guvenc@linux.ibm.com> Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
11a26c59fc
commit
3c572145c2
@@ -56,6 +56,9 @@ enum {
|
||||
SMC_NETLINK_ADD_UEID,
|
||||
SMC_NETLINK_REMOVE_UEID,
|
||||
SMC_NETLINK_FLUSH_UEID,
|
||||
SMC_NETLINK_DUMP_SEID,
|
||||
SMC_NETLINK_ENABLE_SEID,
|
||||
SMC_NETLINK_DISABLE_SEID,
|
||||
};
|
||||
|
||||
/* SMC_GENL_FAMILY top level attributes */
|
||||
@@ -257,4 +260,13 @@ enum {
|
||||
__SMC_NLA_EID_TABLE_MAX,
|
||||
SMC_NLA_EID_TABLE_MAX = __SMC_NLA_EID_TABLE_MAX - 1
|
||||
};
|
||||
|
||||
/* SMC_NETLINK_SEID attributes */
|
||||
enum {
|
||||
SMC_NLA_SEID_UNSPEC,
|
||||
SMC_NLA_SEID_ENTRY, /* string */
|
||||
SMC_NLA_SEID_ENABLED, /* u8 */
|
||||
__SMC_NLA_SEID_TABLE_MAX,
|
||||
SMC_NLA_SEID_TABLE_MAX = __SMC_NLA_SEID_TABLE_MAX - 1
|
||||
};
|
||||
#endif /* _UAPI_LINUX_SMC_H */
|
||||
|
||||
Reference in New Issue
Block a user