Commit Graph

16 Commits

Author SHA1 Message Date
Sean Tranchetti
406fd8138f rmnetctl: Add uplink aggregation parameters to getlink
The rtrmnet_ctl_getvnd() API and corresponding rmnetcli -n getlink
command now report the values of the 3 paramters used during uplink
aggregation: the maximum packet count, byte count, and time limit.

Change-Id: Id8e9046aba4f5fba79ba5d20884aedb457bbb0a5
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
2019-04-22 16:46:49 -06:00
Sean Tranchetti
85c32d074b 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>
2019-04-22 16:46:49 -06:00
Sean Tranchetti
f74a76a3c5 rmnetctl: add library API and CLI option for new DFC messages
As part of the DFC driver porting process to the 4.19 kernel, the module
parameters for the QMI ACK scaling and the WDA powersave polling frequency
were removed and replaced with new Netlink messages. This patch adds the
support for creating and sending the new messages to alter these values.

Change-Id: I31796b0c8e4b520384e9f50e6d173d8e2d2d0456
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
2019-04-01 18:05:21 -06:00
Sean Tranchetti
1a2abef95b rmnetctl: add getlink library API and CLI option
Add support for the RTM_GETLINK message in order to retrieve the
configuration of an RmNet device after it has been created.

Change-Id: I7de75c461ab1201a0856911348acef939d3ef172
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
2019-04-01 18:04:58 -06:00
Conner Huff
d0f3eca57d librmnetctl: Egress qos for rmnet driver
Additional flow control support added for rmnet driver.
Supported by the addition of IFLA_VLAN_EGRESS_QOS netlink
attributes in rmnet driver and this RTM_NEWLINK message
configuration api.

•   flow_activate (uint16 bearer_id, uint32 flow_id, uint8 ip_type, uint32 tcm_handle)
•   flow_delete (uint16 bearer_id)
•   flow_control (uint16 bearer_id, uint32 grant_size, uint16 seq, uint8 ack)
•   flow_state_up (uint16 instance, uint32 ep_type, uint32 iface_id)
•   flow_state_down (uint16 instance)

CRs-Fixed: 2224576
Change-Id: Ib8b337c840631ef8a3d36884e42a4faea153ba18
2018-05-18 13:22:25 -07:00
Subash Abhinov Kasiviswanathan
5b903ddace librmnetctl: Add support for rmnet driver
Add support for newlink, dellink, chagelink and bridge netlink
operations for the netlink type "rmnet" to communicate with the
linux rmnet driver.

CRs-Fixed: 2184454
Change-Id: Ib088fd919a77c926c5e4c3a55062a59ab72fd5d0
2018-01-25 07:26:52 -07:00
Subash Abhinov Kasiviswanathan
dba447c1ee librmnetctl: Add support to create device name as specified by user
rmnet_data assigns device name by the order they are created.
This causes problems which multiple processes are trying to
create devices and leads to random device names.

Assign device name as specified by user.

CRs-Fixed: 2018794
Change-Id: Ie0630611d658418b067df796321f4c3f565b9661
2017-10-18 12:17:01 -07:00
Subash Abhinov Kasiviswanathan
cf715081f8 librmnetctl: Minor readability and spelling fixes
Add numbering to the rmnetctl error code enum.
This helps for easier reading while debugging.
Fix a few typos. Also update copyright.

Change-Id: I7ce113f7535f8d1897bb5accb30b0e0dc133869a
2015-04-14 14:48:36 -06:00
Harout Hedeshian
0bf0a17c78 rmnetctl: Fix compilation warnings for 64bit support
Fix compilation warnings & KW warnings to support 64 bit.

CRs-Fixed: 609463
Change-Id: Ib74cc09551b0c63e215873dd6ece68392aab1c8e
Acked-by: Sivan Reinstein <sivanr@qti.qualcomm.com>
2014-04-15 15:52:57 -06:00
Harout Hedeshian
77825571e2 rmnetctl: Enhancements and bug fixes
This patch introduced a new variable (string len) for
rmnet_get_logical_ep_config as well as a new set of error
values which match the errors produced by rmnet_data.
Additionally, several fixes such as a memory leak and input
checks were applied.

CRs-Fixed: 599231
Change-Id: Ia662b4393d7de0bb1629fb7d3b45bc7c109a9866
2014-03-25 09:17:06 -06:00
Subash Abhinov Kasiviswanathan
22fa38881e rmnetctl: Changes for guaranteed padding
Added tail_spacing as an option for ingress data format.

CRs-Fixed: 579184
Change-Id: I1081c8672162d0858934c282a329da55dec285b7
2014-01-20 15:49:38 -07:00
Harout Hedeshian
a973165534 rmnetctl: Support of unset logical EP
Adding support for unsetting the logical end point configuration
for a network device (Virtual or Physical). This is required
for clean-up and reference accounting process.

CRs-Fixed: 596227
Change-Id: Ifbb65de69c7bee64d930cf413b0058cb32cf8de7
2014-01-07 09:30:32 -07:00
Harout Hedeshian
97a1e987e2 rmnetctl: Changes for flow handles
Added an option to add or delete the modem flow handle or tc flow
handle for a given virtual network device

CRs-fixed: 568534
Change-Id: Iaf0b7ecc4e2059e24183567708be08afdd8d9263
2013-11-08 09:39:07 -07:00
Harout Hedeshian
89a91e2fb7 rmnetctl: Added support for creating VNDs with a custom prefix
Adding support for creating virtual RmNet Data device nodes with
a custom name prefix. Required to support reverse RmNet naming
conventions.

CRs-Fixed: 555507
Change-Id: Ie2b8d25fd9575a00c246061e0deb2aa1d541457b
2013-10-24 14:35:58 -06:00
Harout Hedeshian
04d6973e51 Makefiles: Add appropriate Makefiles to allow compilation on LE
Adds Makeiles and supporting files to enable compilition on LE
platforms. Required to enable RmNet Data feature on LE targets.

Change-Id: I2b9232eae0ad26d158bec077a2459261ea3cfecf
2013-10-10 09:41:10 -06:00
Harout Hedeshian
b2fc5b1902 rmnetcfg: Initial commit
RmNet configuration library and command line utility for configuring
the RmNet Data kernel module.

CRs-Fixed: 525675
Acked-by: Subash Abhinov Kasiviswanathan <subashab@qti.qualcomm.com>
Change-Id: I4c15e2f0e32082077c189cf316f845699aef5f13
2013-09-26 12:58:04 -06:00