summaryrefslogtreecommitdiffstats
path: root/ncsi_util.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: Update to match docs repoGunnar Mills2018-09-151-72/+47
| | | | | | | | | Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting Change-Id: Ia331c9a5b040e1a3c45a0ebf1b8d776d93b05ae5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* reorder headersPatrick Venture2018-08-271-3/+3
| | | | | | | | | | | | | | | | | | Reordering all the headers to the following structure: header file: local c cpp (including openbmc libraries) source file: source.hpp (if applicable) local c cpp Change-Id: Ia74a5c761a3029819366159de3cfd40c5e4c4a2c Signed-off-by: Patrick Venture <venture@google.com>
* Spelling fixesGunnar Mills2018-04-081-1/+1
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: Ia0a4d655510a1d5f81ac369bdad9f7cfbd675484 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* ncsi: implement the main functionRatan Gupta2018-04-051-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the functionality to call the specific function depends on the command given. eg: Force a channel to be used. ncsi-netlink --set -x 2 -p 0 -c 0 x: Interface Index p: Package number c: channel number eg: Gets the info of a given interface ncsi-netlink --info -x 2 -p 0 x: Interface Index p: Package number eg: Clear all the package/channel ncsi-netlink --clear -x 2 x: Interface Index This commit also removes the unnecessary console messages. Change-Id: I682f91452a3ab6362be0de8ac2658ffc9e160c29 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* ncsi: implement the getinfo functionRatan Gupta2018-04-041-4/+191
| | | | | | | | | | | This function is used to dump all the info of the package and the channels underlying the package. This function talks with the NCSI driver over netlink messages. Change-Id: Ie0aa8924049a6d3b32426627e025f653f84cfbe9 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* ncsi: Impelment the setChannel/ClearInterface functionRatan Gupta2018-04-041-0/+131
SetChannel:This function will ask underlying NCSI driver to set the package or package/channel combination as the preferred choice. ClearInterface:This function clears any preferred setting from the specific interface. These functions talks with the NCSI driver through the netlink messages. Change-Id: Icb5ae35f83b5b0d0f9654ff4a0dd568fe10680a7 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
OpenPOWER on IntegriCloud