rmnet_handlers.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (c) 2013, 2016-2017, 2019-2021, The Linux Foundation. All rights reserved.
  2. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * RMNET Data ingress/egress handler
  14. *
  15. */
  16. #ifndef _RMNET_HANDLERS_H_
  17. #define _RMNET_HANDLERS_H_
  18. #include "rmnet_config.h"
  19. enum rmnet_packet_context {
  20. RMNET_NET_RX_CTX,
  21. RMNET_WQ_CTX,
  22. };
  23. void rmnet_egress_handler(struct sk_buff *skb, bool low_latency);
  24. void rmnet_deliver_skb(struct sk_buff *skb, struct rmnet_port *port);
  25. void rmnet_deliver_skb_wq(struct sk_buff *skb, struct rmnet_port *port,
  26. enum rmnet_packet_context ctx);
  27. void rmnet_set_skb_proto(struct sk_buff *skb);
  28. bool rmnet_slow_start_on(u32 hash_key);
  29. rx_handler_result_t _rmnet_map_ingress_handler(struct sk_buff *skb,
  30. struct rmnet_port *port);
  31. rx_handler_result_t rmnet_rx_handler(struct sk_buff **pskb);
  32. rx_handler_result_t rmnet_rx_priv_handler(struct sk_buff **pskb);
  33. #endif /* _RMNET_HANDLERS_H_ */