Patrick Venture | 189d44e | 2018-07-09 12:30:59 -0700 | [diff] [blame] | 1 | #include "ncsi_util.hpp" |
| 2 | |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 3 | #include <linux/ncsi.h> |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 4 | #include <netlink/genl/ctrl.h> |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 5 | #include <netlink/genl/genl.h> |
| 6 | #include <netlink/netlink.h> |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 7 | |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 8 | #include <iostream> |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 9 | #include <phosphor-logging/elog-errors.hpp> |
| 10 | #include <phosphor-logging/log.hpp> |
Patrick Venture | 189d44e | 2018-07-09 12:30:59 -0700 | [diff] [blame] | 11 | #include <xyz/openbmc_project/Common/error.hpp> |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 12 | |
| 13 | namespace phosphor |
| 14 | { |
| 15 | namespace network |
| 16 | { |
| 17 | namespace ncsi |
| 18 | { |
| 19 | |
| 20 | using namespace phosphor::logging; |
| 21 | using namespace sdbusplus::xyz::openbmc_project::Common::Error; |
| 22 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 23 | using CallBack = int (*)(struct nl_msg* msg, void* arg); |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 24 | |
| 25 | namespace internal |
| 26 | { |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 27 | |
| 28 | using nlMsgPtr = std::unique_ptr<nl_msg, decltype(&::nlmsg_free)>; |
| 29 | using nlSocketPtr = std::unique_ptr<nl_sock, decltype(&::nl_socket_free)>; |
| 30 | |
Manojkiran Eda | aa57fa5 | 2020-06-13 14:59:53 +0530 | [diff] [blame] | 31 | CallBack infoCallBack = [](struct nl_msg* msg, void* /*arg*/) { |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 32 | using namespace phosphor::network::ncsi; |
| 33 | auto nlh = nlmsg_hdr(msg); |
| 34 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 35 | struct nlattr* tb[NCSI_ATTR_MAX + 1] = {nullptr}; |
| 36 | struct nla_policy ncsiPolicy[NCSI_ATTR_MAX + 1] = { |
| 37 | {type : NLA_UNSPEC}, {type : NLA_U32}, {type : NLA_NESTED}, |
| 38 | {type : NLA_U32}, {type : NLA_U32}, |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 39 | }; |
| 40 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 41 | struct nlattr* packagetb[NCSI_PKG_ATTR_MAX + 1] = {nullptr}; |
| 42 | struct nla_policy packagePolicy[NCSI_PKG_ATTR_MAX + 1] = { |
| 43 | {type : NLA_UNSPEC}, {type : NLA_NESTED}, {type : NLA_U32}, |
| 44 | {type : NLA_FLAG}, {type : NLA_NESTED}, |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 45 | }; |
| 46 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 47 | struct nlattr* channeltb[NCSI_CHANNEL_ATTR_MAX + 1] = {nullptr}; |
| 48 | struct nla_policy channelPolicy[NCSI_CHANNEL_ATTR_MAX + 1] = { |
| 49 | {type : NLA_UNSPEC}, {type : NLA_NESTED}, {type : NLA_U32}, |
| 50 | {type : NLA_FLAG}, {type : NLA_NESTED}, {type : NLA_UNSPEC}, |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | auto ret = genlmsg_parse(nlh, 0, tb, NCSI_ATTR_MAX, ncsiPolicy); |
| 54 | if (!tb[NCSI_ATTR_PACKAGE_LIST]) |
| 55 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 56 | std::cerr << "No Packages" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 57 | return -1; |
| 58 | } |
| 59 | |
| 60 | auto attrTgt = static_cast<nlattr*>(nla_data(tb[NCSI_ATTR_PACKAGE_LIST])); |
| 61 | if (!attrTgt) |
| 62 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 63 | std::cerr << "Package list attribute is null" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 64 | return -1; |
| 65 | } |
| 66 | |
| 67 | auto rem = nla_len(tb[NCSI_ATTR_PACKAGE_LIST]); |
| 68 | nla_for_each_nested(attrTgt, tb[NCSI_ATTR_PACKAGE_LIST], rem) |
| 69 | { |
| 70 | ret = nla_parse_nested(packagetb, NCSI_PKG_ATTR_MAX, attrTgt, |
| 71 | packagePolicy); |
| 72 | if (ret < 0) |
| 73 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 74 | std::cerr << "Failed to parse package nested" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 75 | return -1; |
| 76 | } |
| 77 | |
| 78 | if (packagetb[NCSI_PKG_ATTR_ID]) |
| 79 | { |
| 80 | auto attrID = nla_get_u32(packagetb[NCSI_PKG_ATTR_ID]); |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 81 | std::cout << "Package has id : " << std::hex << attrID << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 82 | } |
| 83 | else |
| 84 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 85 | std::cout << "Package with no id" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | if (packagetb[NCSI_PKG_ATTR_FORCED]) |
| 89 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 90 | std::cout << "This package is forced" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | auto channelListTarget = static_cast<nlattr*>( |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 94 | nla_data(packagetb[NCSI_PKG_ATTR_CHANNEL_LIST])); |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 95 | |
| 96 | auto channelrem = nla_len(packagetb[NCSI_PKG_ATTR_CHANNEL_LIST]); |
| 97 | nla_for_each_nested(channelListTarget, |
| 98 | packagetb[NCSI_PKG_ATTR_CHANNEL_LIST], channelrem) |
| 99 | { |
| 100 | ret = nla_parse_nested(channeltb, NCSI_CHANNEL_ATTR_MAX, |
| 101 | channelListTarget, channelPolicy); |
| 102 | if (ret < 0) |
| 103 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 104 | std::cerr << "Failed to parse channel nested" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 105 | return -1; |
| 106 | } |
| 107 | |
| 108 | if (channeltb[NCSI_CHANNEL_ATTR_ID]) |
| 109 | { |
| 110 | auto channel = nla_get_u32(channeltb[NCSI_CHANNEL_ATTR_ID]); |
| 111 | if (channeltb[NCSI_CHANNEL_ATTR_ACTIVE]) |
| 112 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 113 | std::cout << "Channel Active : " << std::hex << channel |
| 114 | << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 115 | } |
| 116 | else |
| 117 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 118 | std::cout << "Channel Not Active : " << std::hex << channel |
| 119 | << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | if (channeltb[NCSI_CHANNEL_ATTR_FORCED]) |
| 123 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 124 | std::cout << "Channel is forced" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 125 | } |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 126 | } |
| 127 | else |
| 128 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 129 | std::cout << "Channel with no ID" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 130 | } |
Ratan Gupta | ed5d7ff | 2018-03-23 00:27:52 +0530 | [diff] [blame] | 131 | |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 132 | if (channeltb[NCSI_CHANNEL_ATTR_VERSION_MAJOR]) |
| 133 | { |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 134 | auto major = |
| 135 | nla_get_u32(channeltb[NCSI_CHANNEL_ATTR_VERSION_MAJOR]); |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 136 | std::cout << "Channel Major Version : " << std::hex << major |
| 137 | << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 138 | } |
| 139 | if (channeltb[NCSI_CHANNEL_ATTR_VERSION_MINOR]) |
| 140 | { |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 141 | auto minor = |
| 142 | nla_get_u32(channeltb[NCSI_CHANNEL_ATTR_VERSION_MINOR]); |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 143 | std::cout << "Channel Minor Version : " << std::hex << minor |
| 144 | << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 145 | } |
| 146 | if (channeltb[NCSI_CHANNEL_ATTR_VERSION_STR]) |
| 147 | { |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 148 | auto str = |
| 149 | nla_get_string(channeltb[NCSI_CHANNEL_ATTR_VERSION_STR]); |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 150 | std::cout << "Channel Version Str :" << str << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 151 | } |
| 152 | if (channeltb[NCSI_CHANNEL_ATTR_LINK_STATE]) |
| 153 | { |
Ratan Gupta | ed5d7ff | 2018-03-23 00:27:52 +0530 | [diff] [blame] | 154 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 155 | auto link = |
| 156 | nla_get_u32(channeltb[NCSI_CHANNEL_ATTR_LINK_STATE]); |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 157 | std::cout << "Channel Link State : " << std::hex << link |
| 158 | << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 159 | } |
| 160 | if (channeltb[NCSI_CHANNEL_ATTR_VLAN_LIST]) |
| 161 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 162 | std::cout << "Active Vlan ids" << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 163 | auto vids = channeltb[NCSI_CHANNEL_ATTR_VLAN_LIST]; |
| 164 | auto vid = static_cast<nlattr*>(nla_data(vids)); |
| 165 | auto len = nla_len(vids); |
| 166 | while (nla_ok(vid, len)) |
| 167 | { |
| 168 | auto id = nla_get_u16(vid); |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 169 | std::cout << "VID : " << id << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 170 | vid = nla_next(vid, &len); |
| 171 | } |
| 172 | } |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 173 | } |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 174 | } |
| 175 | return (int)NL_SKIP; |
| 176 | }; |
| 177 | |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 178 | int applyCmd(int ifindex, int cmd, int package = DEFAULT_VALUE, |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 179 | int channel = DEFAULT_VALUE, int flags = NONE, |
| 180 | CallBack function = nullptr) |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 181 | { |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 182 | nlSocketPtr socket(nl_socket_alloc(), &::nl_socket_free); |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 183 | auto ret = genl_connect(socket.get()); |
| 184 | if (ret < 0) |
| 185 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 186 | std::cerr << "Failed to open the socket , RC : " << ret << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 187 | return ret; |
| 188 | } |
| 189 | |
| 190 | auto driverID = genl_ctrl_resolve(socket.get(), "NCSI"); |
| 191 | if (driverID < 0) |
| 192 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 193 | std::cerr << "Failed to resolve, RC : " << ret << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 194 | return driverID; |
| 195 | } |
| 196 | |
| 197 | nlMsgPtr msg(nlmsg_alloc(), &::nlmsg_free); |
| 198 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 199 | auto msgHdr = genlmsg_put(msg.get(), 0, 0, driverID, 0, flags, cmd, 0); |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 200 | if (!msgHdr) |
| 201 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 202 | std::cerr << "Unable to add the netlink headers , COMMAND : " << cmd |
| 203 | << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 204 | return -1; |
| 205 | } |
| 206 | |
| 207 | if (package != DEFAULT_VALUE) |
| 208 | { |
| 209 | ret = nla_put_u32(msg.get(), ncsi_nl_attrs::NCSI_ATTR_PACKAGE_ID, |
| 210 | package); |
| 211 | if (ret < 0) |
| 212 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 213 | std::cerr << "Failed to set the attribute , RC : " << ret |
| 214 | << "PACKAGE " << std::hex << package << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 215 | return ret; |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | if (channel != DEFAULT_VALUE) |
| 220 | { |
| 221 | ret = nla_put_u32(msg.get(), ncsi_nl_attrs::NCSI_ATTR_CHANNEL_ID, |
| 222 | channel); |
| 223 | if (ret < 0) |
| 224 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 225 | std::cerr << "Failed to set the attribute , RC : " << ret |
| 226 | << "CHANNEL : " << std::hex << channel << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 227 | return ret; |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | ret = nla_put_u32(msg.get(), ncsi_nl_attrs::NCSI_ATTR_IFINDEX, ifindex); |
| 232 | if (ret < 0) |
| 233 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 234 | std::cerr << "Failed to set the attribute , RC : " << ret |
| 235 | << "INTERFACE : " << std::hex << ifindex << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 236 | return ret; |
| 237 | } |
| 238 | |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 239 | if (function) |
| 240 | { |
| 241 | // Add a callback function to the socket |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 242 | nl_socket_modify_cb(socket.get(), NL_CB_VALID, NL_CB_CUSTOM, function, |
| 243 | nullptr); |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 244 | } |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 245 | |
| 246 | ret = nl_send_auto(socket.get(), msg.get()); |
| 247 | if (ret < 0) |
| 248 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 249 | std::cerr << "Failed to send the message , RC : " << ret << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 250 | return ret; |
| 251 | } |
| 252 | |
| 253 | ret = nl_recvmsgs_default(socket.get()); |
| 254 | if (ret < 0) |
| 255 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 256 | std::cerr << "Failed to receive the message , RC : " << ret |
| 257 | << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 258 | } |
| 259 | return ret; |
| 260 | } |
| 261 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 262 | } // namespace internal |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 263 | |
| 264 | int setChannel(int ifindex, int package, int channel) |
| 265 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 266 | std::cout << "Set Channel : " << std::hex << channel |
| 267 | << ", PACKAGE : " << std::hex << package |
| 268 | << ", IFINDEX : " << std::hex << ifindex << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 269 | return internal::applyCmd(ifindex, ncsi_nl_commands::NCSI_CMD_SET_INTERFACE, |
| 270 | package, channel); |
| 271 | } |
| 272 | |
| 273 | int clearInterface(int ifindex) |
| 274 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 275 | std::cout << "ClearInterface , IFINDEX :" << std::hex << ifindex |
| 276 | << std::endl; |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 277 | return internal::applyCmd(ifindex, |
| 278 | ncsi_nl_commands::NCSI_CMD_CLEAR_INTERFACE); |
| 279 | } |
| 280 | |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 281 | int getInfo(int ifindex, int package) |
| 282 | { |
Manojkiran Eda | e5a867a | 2020-06-01 18:08:30 +0530 | [diff] [blame] | 283 | std::cout << "Get Info , PACKAGE : " << std::hex << package |
| 284 | << ", IFINDEX : " << std::hex << ifindex << std::endl; |
Ratan Gupta | aac603e | 2018-03-23 00:25:54 +0530 | [diff] [blame] | 285 | if (package == DEFAULT_VALUE) |
| 286 | { |
| 287 | return internal::applyCmd(ifindex, ncsi_nl_commands::NCSI_CMD_PKG_INFO, |
| 288 | package, DEFAULT_VALUE, NLM_F_DUMP, |
| 289 | internal::infoCallBack); |
| 290 | } |
| 291 | else |
| 292 | { |
| 293 | return internal::applyCmd(ifindex, ncsi_nl_commands::NCSI_CMD_PKG_INFO, |
| 294 | package, DEFAULT_VALUE, NONE, |
| 295 | internal::infoCallBack); |
| 296 | } |
| 297 | } |
| 298 | |
Gunnar Mills | 57d9c50 | 2018-09-14 14:42:34 -0500 | [diff] [blame] | 299 | } // namespace ncsi |
| 300 | } // namespace network |
| 301 | } // namespace phosphor |