Subash Abhinov Kasiviswanathan | 5859863 | 2017-02-23 18:24:42 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved. |
Subash Abhinov Kasiviswanathan | 2139ce8a | 2016-10-14 11:01:48 -0600 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | * RMNET Data Virtual Network Device APIs |
| 13 | */ |
| 14 | |
| 15 | #include <linux/types.h> |
| 16 | |
| 17 | #ifndef _RMNET_DATA_VND_H_ |
| 18 | #define _RMNET_DATA_VND_H_ |
| 19 | |
| 20 | int rmnet_vnd_do_flow_control(struct net_device *dev, |
| 21 | u32 map_flow_id, |
| 22 | u16 v4_seq, |
| 23 | u16 v6_seq, |
| 24 | int enable); |
| 25 | struct rmnet_logical_ep_conf_s *rmnet_vnd_get_le_config(struct net_device *dev); |
| 26 | int rmnet_vnd_get_name(int id, char *name, int name_len); |
| 27 | int rmnet_vnd_create_dev(int id, struct net_device **new_device, |
Subash Abhinov Kasiviswanathan | 5859863 | 2017-02-23 18:24:42 -0700 | [diff] [blame] | 28 | const char *prefix, int use_name); |
Subash Abhinov Kasiviswanathan | 2139ce8a | 2016-10-14 11:01:48 -0600 | [diff] [blame] | 29 | int rmnet_vnd_free_dev(int id); |
Subash Abhinov Kasiviswanathan | 2139ce8a | 2016-10-14 11:01:48 -0600 | [diff] [blame] | 30 | int rmnet_vnd_is_vnd(struct net_device *dev); |
| 31 | int rmnet_vnd_add_tc_flow(u32 id, u32 map_flow, u32 tc_flow); |
| 32 | int rmnet_vnd_del_tc_flow(u32 id, u32 map_flow, u32 tc_flow); |
| 33 | int rmnet_vnd_init(void); |
| 34 | void rmnet_vnd_exit(void); |
| 35 | struct net_device *rmnet_vnd_get_by_id(int id); |
| 36 | |
| 37 | #endif /* _RMNET_DATA_VND_H_ */ |