sysfs-class-net-cdc_ncm 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. What: /sys/class/net/<iface>/cdc_ncm/min_tx_pkt
  2. Date: May 2014
  3. KernelVersion: 3.16
  4. Contact: Bjørn Mork <bjorn@mork.no>
  5. Description:
  6. The driver will pad NCM Transfer Blocks (NTBs) longer
  7. than this to tx_max, allowing the device to receive
  8. tx_max sized frames with no terminating short
  9. packet. NTBs shorter than this limit are transmitted
  10. as-is, without any padding, and are terminated with a
  11. short USB packet.
  12. Padding to tx_max allows the driver to transmit NTBs
  13. back-to-back without any interleaving short USB
  14. packets. This reduces the number of short packet
  15. interrupts in the device, and represents a tradeoff
  16. between USB bus bandwidth and device DMA optimization.
  17. Set to 0 to pad all frames. Set greater than tx_max to
  18. disable all padding.
  19. What: /sys/class/net/<iface>/cdc_ncm/rx_max
  20. Date: May 2014
  21. KernelVersion: 3.16
  22. Contact: Bjørn Mork <bjorn@mork.no>
  23. Description:
  24. The maximum NTB size for RX. Cannot exceed the
  25. maximum value supported by the device. Must allow at
  26. least one max sized datagram plus headers.
  27. The actual limits are device dependent. See
  28. dwNtbInMaxSize.
  29. Note: Some devices will silently ignore changes to
  30. this value, resulting in oversized NTBs and
  31. corresponding framing errors.
  32. What: /sys/class/net/<iface>/cdc_ncm/tx_max
  33. Date: May 2014
  34. KernelVersion: 3.16
  35. Contact: Bjørn Mork <bjorn@mork.no>
  36. Description:
  37. The maximum NTB size for TX. Cannot exceed the
  38. maximum value supported by the device. Must allow at
  39. least one max sized datagram plus headers.
  40. The actual limits are device dependent. See
  41. dwNtbOutMaxSize.
  42. What: /sys/class/net/<iface>/cdc_ncm/tx_timer_usecs
  43. Date: May 2014
  44. KernelVersion: 3.16
  45. Contact: Bjørn Mork <bjorn@mork.no>
  46. Description:
  47. Datagram aggregation timeout in µs. The driver will
  48. wait up to 3 times this timeout for more datagrams to
  49. aggregate before transmitting an NTB frame.
  50. Valid range: 5 to 4000000
  51. Set to 0 to disable aggregation.
  52. The following read-only attributes all represent fields of the
  53. structure defined in section 6.2.1 "GetNtbParameters" of "Universal
  54. Serial Bus Communications Class Subclass Specifications for Network
  55. Control Model Devices" (CDC NCM), Revision 1.0 (Errata 1), November
  56. 24, 2010 from USB Implementers Forum, Inc. The descriptions are
  57. quoted from table 6-3 of CDC NCM: "NTB Parameter Structure".
  58. What: /sys/class/net/<iface>/cdc_ncm/bmNtbFormatsSupported
  59. Date: May 2014
  60. KernelVersion: 3.16
  61. Contact: Bjørn Mork <bjorn@mork.no>
  62. Description:
  63. Bit 0: 16-bit NTB supported (set to 1)
  64. Bit 1: 32-bit NTB supported
  65. Bits 2 – 15: reserved (reset to zero; must be ignored by host)
  66. What: /sys/class/net/<iface>/cdc_ncm/dwNtbInMaxSize
  67. Date: May 2014
  68. KernelVersion: 3.16
  69. Contact: Bjørn Mork <bjorn@mork.no>
  70. Description:
  71. IN NTB Maximum Size in bytes
  72. What: /sys/class/net/<iface>/cdc_ncm/wNdpInDivisor
  73. Date: May 2014
  74. KernelVersion: 3.16
  75. Contact: Bjørn Mork <bjorn@mork.no>
  76. Description:
  77. Divisor used for IN NTB Datagram payload alignment
  78. What: /sys/class/net/<iface>/cdc_ncm/wNdpInPayloadRemainder
  79. Date: May 2014
  80. KernelVersion: 3.16
  81. Contact: Bjørn Mork <bjorn@mork.no>
  82. Description:
  83. Remainder used to align input datagram payload within
  84. the NTB: (Payload Offset) mod (wNdpInDivisor) =
  85. wNdpInPayloadRemainder
  86. What: /sys/class/net/<iface>/cdc_ncm/wNdpInAlignment
  87. Date: May 2014
  88. KernelVersion: 3.16
  89. Contact: Bjørn Mork <bjorn@mork.no>
  90. Description:
  91. NDP alignment modulus for NTBs on the IN pipe. Shall
  92. be a power of 2, and shall be at least 4.
  93. What: /sys/class/net/<iface>/cdc_ncm/dwNtbOutMaxSize
  94. Date: May 2014
  95. KernelVersion: 3.16
  96. Contact: Bjørn Mork <bjorn@mork.no>
  97. Description:
  98. OUT NTB Maximum Size
  99. What: /sys/class/net/<iface>/cdc_ncm/wNdpOutDivisor
  100. Date: May 2014
  101. KernelVersion: 3.16
  102. Contact: Bjørn Mork <bjorn@mork.no>
  103. Description:
  104. OUT NTB Datagram alignment modulus
  105. What: /sys/class/net/<iface>/cdc_ncm/wNdpOutPayloadRemainder
  106. Date: May 2014
  107. KernelVersion: 3.16
  108. Contact: Bjørn Mork <bjorn@mork.no>
  109. Description:
  110. Remainder used to align output datagram payload
  111. offsets within the NTB: Padding, shall be transmitted
  112. as zero by function, and ignored by host. (Payload
  113. Offset) mod (wNdpOutDivisor) = wNdpOutPayloadRemainder
  114. What: /sys/class/net/<iface>/cdc_ncm/wNdpOutAlignment
  115. Date: May 2014
  116. KernelVersion: 3.16
  117. Contact: Bjørn Mork <bjorn@mork.no>
  118. Description:
  119. NDP alignment modulus for use in NTBs on the OUT
  120. pipe. Shall be a power of 2, and shall be at least 4.
  121. What: /sys/class/net/<iface>/cdc_ncm/wNtbOutMaxDatagrams
  122. Date: May 2014
  123. KernelVersion: 3.16
  124. Contact: Bjørn Mork <bjorn@mork.no>
  125. Description:
  126. Maximum number of datagrams that the host may pack
  127. into a single OUT NTB. Zero means that the device
  128. imposes no limit.