blob: 9d8eb54b1fb927483078911a8b108ea6cfadc5e9 [file] [log] [blame]
Subash Abhinov Kasiviswanathan58598632017-02-23 18:24:42 -07001/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
Subash Abhinov Kasiviswanathan2139ce8a2016-10-14 11:01:48 -06002 *
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
20int 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);
25struct rmnet_logical_ep_conf_s *rmnet_vnd_get_le_config(struct net_device *dev);
26int rmnet_vnd_get_name(int id, char *name, int name_len);
27int rmnet_vnd_create_dev(int id, struct net_device **new_device,
Subash Abhinov Kasiviswanathan58598632017-02-23 18:24:42 -070028 const char *prefix, int use_name);
Subash Abhinov Kasiviswanathan2139ce8a2016-10-14 11:01:48 -060029int rmnet_vnd_free_dev(int id);
30int rmnet_vnd_rx_fixup(struct sk_buff *skb, struct net_device *dev);
31int rmnet_vnd_tx_fixup(struct sk_buff *skb, struct net_device *dev);
32int rmnet_vnd_is_vnd(struct net_device *dev);
33int rmnet_vnd_add_tc_flow(u32 id, u32 map_flow, u32 tc_flow);
34int rmnet_vnd_del_tc_flow(u32 id, u32 map_flow, u32 tc_flow);
35int rmnet_vnd_init(void);
36void rmnet_vnd_exit(void);
37struct net_device *rmnet_vnd_get_by_id(int id);
38
39#endif /* _RMNET_DATA_VND_H_ */