rmnet_data_stats.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) 2014, 2016, 2018 The Linux Foundation. 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. *
  14. * RMNET Data statistics
  15. *
  16. */
  17. #ifndef _RMNET_DATA_STATS_H_
  18. #define _RMNET_DATA_STATS_H_
  19. enum rmnet_skb_free_e {
  20. RMNET_STATS_SKBFREE_UNKNOWN,
  21. RMNET_STATS_SKBFREE_BRDG_NO_EGRESS,
  22. RMNET_STATS_SKBFREE_DELIVER_NO_EP,
  23. RMNET_STATS_SKBFREE_IPINGRESS_NO_EP,
  24. RMNET_STATS_SKBFREE_MAPINGRESS_BAD_MUX,
  25. RMNET_STATS_SKBFREE_MAPINGRESS_AGGBUF,
  26. RMNET_STATS_SKBFREE_INGRESS_NOT_EXPECT_MAPD,
  27. RMNET_STATS_SKBFREE_INGRESS_NOT_EXPECT_MAPC,
  28. RMNET_STATS_SKBFREE_EGR_MAPFAIL,
  29. RMNET_STATS_SKBFREE_VND_NO_EGRESS,
  30. RMNET_STATS_SKBFREE_MAPC_BAD_MUX,
  31. RMNET_STATS_SKBFREE_MAPC_MUX_NO_EP,
  32. RMNET_STATS_SKBFREE_AGG_CPY_EXPAND,
  33. RMNET_STATS_SKBFREE_AGG_INTO_BUFF,
  34. RMNET_STATS_SKBFREE_DEAGG_MALFORMED,
  35. RMNET_STATS_SKBFREE_DEAGG_CLONE_FAIL,
  36. RMNET_STATS_SKBFREE_DEAGG_UNKNOWN_IP_TYPE,
  37. RMNET_STATS_SKBFREE_DEAGG_DATA_LEN_0,
  38. RMNET_STATS_SKBFREE_INGRESS_BAD_MAP_CKSUM,
  39. RMNET_STATS_SKBFREE_MAPC_UNSUPPORTED,
  40. RMNET_STATS_SKBFREE_MAPINGRESS_MUX_NO_EP,
  41. RMNET_STATS_SKBFREE_MAX
  42. };
  43. enum rmnet_queue_xmit_e {
  44. RMNET_STATS_QUEUE_XMIT_UNKNOWN,
  45. RMNET_STATS_QUEUE_XMIT_EGRESS,
  46. RMNET_STATS_QUEUE_XMIT_AGG_FILL_BUFFER,
  47. RMNET_STATS_QUEUE_XMIT_AGG_TIMEOUT,
  48. RMNET_STATS_QUEUE_XMIT_AGG_CPY_EXP_FAIL,
  49. RMNET_STATS_QUEUE_XMIT_AGG_SKIP,
  50. RMNET_STATS_QUEUE_XMIT_MAX
  51. };
  52. void rmnet_kfree_skb(struct sk_buff *skb, unsigned int reason);
  53. void rmnet_stats_queue_xmit(int rc, unsigned int reason);
  54. void rmnet_stats_deagg_pkts(int aggcount);
  55. void rmnet_stats_agg_pkts(int aggcount);
  56. void rmnet_stats_dl_checksum(unsigned int rc);
  57. void rmnet_stats_ul_checksum(unsigned int rc);
  58. #endif /* _RMNET_DATA_STATS_H_ */