rmnet_private.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Copyright (c) 2013-2014, 2016-2020 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. #ifndef _RMNET_PRIVATE_H_
  13. #define _RMNET_PRIVATE_H_
  14. #define RMNET_MAX_PACKET_SIZE 16384
  15. #define RMNET_DFLT_PACKET_SIZE 1500
  16. #define RMNET_NEEDED_HEADROOM 16
  17. #define RMNET_TX_QUEUE_LEN 1000
  18. /* Constants */
  19. #define RMNET_EGRESS_FORMAT_AGGREGATION BIT(31)
  20. #define RMNET_INGRESS_FORMAT_DL_MARKER_V1 BIT(30)
  21. #define RMNET_INGRESS_FORMAT_DL_MARKER_V2 BIT(29)
  22. #define RMNET_FLAGS_INGRESS_COALESCE BIT(4)
  23. #define RMNET_FLAGS_INGRESS_MAP_CKSUMV5 BIT(5)
  24. #define RMNET_FLAGS_EGRESS_MAP_CKSUMV5 BIT(6)
  25. #define RMNET_INGRESS_FORMAT_DL_MARKER (RMNET_INGRESS_FORMAT_DL_MARKER_V1 |\
  26. RMNET_INGRESS_FORMAT_DL_MARKER_V2)
  27. /* UL Packet prioritization */
  28. #define RMNET_EGRESS_FORMAT_PRIORITY BIT(28)
  29. /* Power save feature*/
  30. #define RMNET_INGRESS_FORMAT_PS BIT(27)
  31. #define RMNET_FORMAT_PS_NOTIF BIT(26)
  32. /* UL Aggregation parameters */
  33. #define RMNET_PAGE_RECYCLE BIT(0)
  34. /* Replace skb->dev to a virtual rmnet device and pass up the stack */
  35. #define RMNET_EPMODE_VND (1)
  36. /* Pass the frame directly to another device with dev_queue_xmit() */
  37. #define RMNET_EPMODE_BRIDGE (2)
  38. #endif /* _RMNET_PRIVATE_H_ */