From 3a9fa2aa8025735dcbf413d02ac694fd636f21f5 Mon Sep 17 00:00:00 2001 From: Harout Hedeshian Date: Thu, 24 Oct 2013 09:28:22 -0600 Subject: net: rmnet_data: In-band flow control Implement MAP based in-band flow control. Added 2 new configuration messages to allow adding and deleting flow handles. Added handlers in VND for flow control events. Added flow control command handler in rmnet_map_commands. CRs-fixed: 568534 Change-Id: Ica52e4ad89430c9fa5e2b38e389ee6bc91de2e9b Signed-off-by: Harout Hedeshian --- include/uapi/linux/rmnet_data.h | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'include/uapi') diff --git a/include/uapi/linux/rmnet_data.h b/include/uapi/linux/rmnet_data.h index bcff313a95c0..02778bb2260f 100644 --- a/include/uapi/linux/rmnet_data.h +++ b/include/uapi/linux/rmnet_data.h @@ -66,6 +66,11 @@ struct rmnet_nl_msg_s { uint32_t id; uint8_t vnd_name[RMNET_MAX_STR_LEN]; } vnd; + struct { + uint32_t id; + uint32_t map_flow_id; + uint32_t tc_flow_id; + } flow_control; }; }; @@ -186,7 +191,24 @@ enum rmnet_netlink_message_types_e { * Args: int32_t node number * Returns: status code */ - RMNET_NETLINK_FREE_VND + RMNET_NETLINK_FREE_VND, + + /* + * RMNET_NETLINK_ADD_VND_TC_FLOW - Add flow control handle on VND + * Args: int32_t node number + * uint32_t MAP Flow Handle + * uint32_t TC Flow Handle + * Returns: status code + */ + RMNET_NETLINK_ADD_VND_TC_FLOW, + + /* + * RMNET_NETLINK_DEL_VND_TC_FLOW - Removes flow control handle on VND + * Args: int32_t node number + * uint32_t MAP Flow Handle + * Returns: status code + */ + RMNET_NETLINK_DEL_VND_TC_FLOW }; enum rmnet_config_endpoint_modes_e { @@ -205,7 +227,8 @@ enum rmnet_config_return_codes_e { RMNET_CONFIG_INVALID_REQUEST, RMNET_CONFIG_NO_SUCH_DEVICE, RMNET_CONFIG_BAD_ARGUMENTS, - RMNET_CONFIG_BAD_EGRESS_DEVICE + RMNET_CONFIG_BAD_EGRESS_DEVICE, + RMNET_CONFIG_TC_HANDLE_FULL }; #endif /* _RMNET_DATA_H_ */ -- cgit v1.2.3