rmnet_handlers.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* Copyright (c) 2013, 2016-2017, 2019-2021, The Linux Foundation. All rights reserved.
  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 ingress/egress handler
  13. *
  14. */
  15. #ifndef _RMNET_HANDLERS_H_
  16. #define _RMNET_HANDLERS_H_
  17. #include "rmnet_config.h"
  18. enum rmnet_packet_context {
  19. RMNET_NET_RX_CTX,
  20. RMNET_WQ_CTX,
  21. };
  22. void rmnet_egress_handler(struct sk_buff *skb, bool low_latency);
  23. void rmnet_deliver_skb(struct sk_buff *skb, struct rmnet_port *port);
  24. void rmnet_deliver_skb_wq(struct sk_buff *skb, struct rmnet_port *port,
  25. enum rmnet_packet_context ctx);
  26. void rmnet_set_skb_proto(struct sk_buff *skb);
  27. bool rmnet_slow_start_on(u32 hash_key);
  28. rx_handler_result_t _rmnet_map_ingress_handler(struct sk_buff *skb,
  29. struct rmnet_port *port);
  30. rx_handler_result_t rmnet_rx_handler(struct sk_buff **pskb);
  31. #endif /* _RMNET_HANDLERS_H_ */