rmnetctl: Add uplink aggregation configuation command
Adds a new command to dynamically set the uplink aggregation parameters
the RmNet driver will use.
Change-Id: I1055cacbe1c6b241a03987eca6a23a02cde77a39
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
diff --git a/rmnetctl/cli/rmnetcli.c b/rmnetctl/cli/rmnetcli.c
index 0f496a6..9cfadb9 100644
--- a/rmnetctl/cli/rmnetcli.c
+++ b/rmnetctl/cli/rmnetcli.c
@@ -223,6 +223,11 @@
printf(_2TABS" by inputting dev name\n\n");
printf("rmnetcli -n bridgelink <dev_name> Bridge a vnd and a dev");
printf(_2TABS" <vnd id> by specifying dev id and vnd id\n\n");
+ printf("rmnetcli -n uplinkparam <dev_name> set uplink aggregation parameters");
+ printf(_2TABS" <vnd id> string - vnd device_name");
+ printf(_2TABS" <packet count> int - maximum packet count");
+ printf(_2TABS" <byte count> int - maximum byte count");
+ printf(_2TABS" <time limit> int - maximum time limit\n\n");
printf("rmnetcli -n flowactivate <real dev> activate a flow\n");
printf(_2TABS" <vnd_name> string - vnd device name\n\n");
printf(_2TABS" <bearer_id> int - bearer id\n\n");
@@ -388,6 +393,17 @@
return_code = rtrmnet_ctl_bridgevnd(handle, argv[1],
argv[2],
&error_number);
+ } else if (!strcmp(*argv, "uplinkparam")) {
+ _RMNETCLI_CHECKNULL(argv[1]);
+ _RMNETCLI_CHECKNULL(argv[2]);
+ _RMNETCLI_CHECKNULL(argv[3]);
+ _RMNETCLI_CHECKNULL(argv[4]);
+ _RMNETCLI_CHECKNULL(argv[5]);
+
+ return_code = rtrmnet_set_uplink_aggregation_params(
+ handle, argv[1], argv[2], _STRTOUI8(argv[3]),
+ _STRTOUI16(argv[4]), _STRTOUI32(argv[5]),
+ &error_number);
}
else if (!strcmp(*argv, "flowactivate")) {
_RMNETCLI_CHECKNULL(argv[1]);