smc_netlink.c (87a0b2fafc09766d8c55461a18345a1cfb10a7fe) | smc_netlink.c (f9496b7c1b48ce02cd17a3ee88b1e049c689a222) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 4 * 5 * Generic netlink support functions to interact with SMC module 6 * 7 * Copyright IBM Corp. 2020 8 * --- 97 unchanged lines hidden (view full) --- 106 .flags = GENL_ADMIN_PERM, 107 .doit = smc_nl_enable_seid, 108 }, 109 { 110 .cmd = SMC_NETLINK_DISABLE_SEID, 111 .flags = GENL_ADMIN_PERM, 112 .doit = smc_nl_disable_seid, 113 }, | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 4 * 5 * Generic netlink support functions to interact with SMC module 6 * 7 * Copyright IBM Corp. 2020 8 * --- 97 unchanged lines hidden (view full) --- 106 .flags = GENL_ADMIN_PERM, 107 .doit = smc_nl_enable_seid, 108 }, 109 { 110 .cmd = SMC_NETLINK_DISABLE_SEID, 111 .flags = GENL_ADMIN_PERM, 112 .doit = smc_nl_disable_seid, 113 }, |
114 { 115 .cmd = SMC_NETLINK_DUMP_HS_LIMITATION, 116 /* can be retrieved by unprivileged users */ 117 .dumpit = smc_nl_dump_hs_limitation, 118 }, 119 { 120 .cmd = SMC_NETLINK_ENABLE_HS_LIMITATION, 121 .flags = GENL_ADMIN_PERM, 122 .doit = smc_nl_enable_hs_limitation, 123 }, 124 { 125 .cmd = SMC_NETLINK_DISABLE_HS_LIMITATION, 126 .flags = GENL_ADMIN_PERM, 127 .doit = smc_nl_disable_hs_limitation, 128 }, |
|
114}; 115 116static const struct nla_policy smc_gen_nl_policy[2] = { 117 [SMC_CMD_MAX_ATTR] = { .type = NLA_REJECT, }, 118}; 119 120/* SMC_GENL family definition */ 121struct genl_family smc_gen_nl_family __ro_after_init = { --- 20 unchanged lines hidden --- | 129}; 130 131static const struct nla_policy smc_gen_nl_policy[2] = { 132 [SMC_CMD_MAX_ATTR] = { .type = NLA_REJECT, }, 133}; 134 135/* SMC_GENL family definition */ 136struct genl_family smc_gen_nl_family __ro_after_init = { --- 20 unchanged lines hidden --- |