diff options
author | Guvenc Gulce <guvenc@linux.ibm.com> | 2020-12-01 20:20:44 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-02 02:56:13 +0100 |
commit | 099b990bd11a3a96b5d59973f482018e5cbde6c3 (patch) | |
tree | 958c4deb7b5a8326ddad1363f03298cfd83b02fd /net/smc/smc_clc.c | |
parent | net/smc: Introduce generic netlink interface for diagnostic purposes (diff) | |
download | linux-099b990bd11a3a96b5d59973f482018e5cbde6c3.tar.xz linux-099b990bd11a3a96b5d59973f482018e5cbde6c3.zip |
net/smc: Add support for obtaining system information
Add new netlink command to obtain system information
of the smc module.
Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/smc/smc_clc.c')
-rw-r--r-- | net/smc/smc_clc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/smc/smc_clc.c b/net/smc/smc_clc.c index 696d89c2dce4..e286dafd6e88 100644 --- a/net/smc/smc_clc.c +++ b/net/smc/smc_clc.c @@ -772,6 +772,11 @@ int smc_clc_send_accept(struct smc_sock *new_smc, bool srv_first_contact, return len > 0 ? 0 : len; } +void smc_clc_get_hostname(u8 **host) +{ + *host = &smc_hostname[0]; +} + void __init smc_clc_init(void) { struct new_utsname *u; |