xref: /openbmc/linux/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
197fb5e8dSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2ceed73a2SSubash Abhinov Kasiviswanathan /* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
3ceed73a2SSubash Abhinov Kasiviswanathan  *
4ceed73a2SSubash Abhinov Kasiviswanathan  * RMNET Data Virtual Network Device APIs
5ceed73a2SSubash Abhinov Kasiviswanathan  */
6ceed73a2SSubash Abhinov Kasiviswanathan 
7ceed73a2SSubash Abhinov Kasiviswanathan #ifndef _RMNET_VND_H_
8ceed73a2SSubash Abhinov Kasiviswanathan #define _RMNET_VND_H_
9ceed73a2SSubash Abhinov Kasiviswanathan 
10ceed73a2SSubash Abhinov Kasiviswanathan int rmnet_vnd_do_flow_control(struct net_device *dev, int enable);
11ceed73a2SSubash Abhinov Kasiviswanathan int rmnet_vnd_newlink(u8 id, struct net_device *rmnet_dev,
12b665f4f8SSubash Abhinov Kasiviswanathan 		      struct rmnet_port *port,
133352e6c4SSubash Abhinov Kasiviswanathan 		      struct net_device *real_dev,
14fcf8f4ebSTaehee Yoo 		      struct rmnet_endpoint *ep,
15fcf8f4ebSTaehee Yoo 		      struct netlink_ext_ack *extack);
163352e6c4SSubash Abhinov Kasiviswanathan int rmnet_vnd_dellink(u8 id, struct rmnet_port *port,
173352e6c4SSubash Abhinov Kasiviswanathan 		      struct rmnet_endpoint *ep);
18ceed73a2SSubash Abhinov Kasiviswanathan void rmnet_vnd_rx_fixup(struct sk_buff *skb, struct net_device *dev);
19*64b5d1f8SDaniele Palmas void rmnet_vnd_tx_fixup_len(unsigned int len, struct net_device *dev);
20ceed73a2SSubash Abhinov Kasiviswanathan void rmnet_vnd_tx_fixup(struct sk_buff *skb, struct net_device *dev);
21ceed73a2SSubash Abhinov Kasiviswanathan void rmnet_vnd_setup(struct net_device *dev);
22b7f5eb6bSSubash Abhinov Kasiviswanathan int rmnet_vnd_validate_real_dev_mtu(struct net_device *real_dev);
23b7f5eb6bSSubash Abhinov Kasiviswanathan int rmnet_vnd_update_dev_mtu(struct rmnet_port *port,
24b7f5eb6bSSubash Abhinov Kasiviswanathan 			     struct net_device *real_dev);
25ceed73a2SSubash Abhinov Kasiviswanathan #endif /* _RMNET_VND_H_ */
26