ncsi: implement the main function
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>
diff --git a/ncsi_util.hpp b/ncsi_util.hpp
index 570152b..db92269 100644
--- a/ncsi_util.hpp
+++ b/ncsi_util.hpp
@@ -5,6 +5,9 @@
namespace ncsi
{
+constexpr auto DEFAULT_VALUE = -1;
+constexpr auto NONE = 0;
+
/* @brief This function will ask underlying NCSI driver
* to set a specific package or package/channel
* combination as the preferred choice.