1 What: /sys/class/net/<iface>/cdc_ncm/min_tx_pkt
4 Contact: Bjørn Mork <bjorn@mork.no>
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
13 Padding to tx_max allows the driver to transmit NTBs
14 back-to-back without any interleaving short USB
15 packets. This reduces the number of short packet
16 interrupts in the device, and represents a tradeoff
17 between USB bus bandwidth and device DMA optimization.
19 Set to 0 to pad all frames. Set greater than tx_max to
22 What: /sys/class/net/<iface>/cdc_ncm/rx_max
25 Contact: Bjørn Mork <bjorn@mork.no>
27 The maximum NTB size for RX. Cannot exceed the
28 maximum value supported by the device. Must allow at
29 least one max sized datagram plus headers.
31 The actual limits are device dependent. See
34 Note: Some devices will silently ignore changes to
35 this value, resulting in oversized NTBs and
36 corresponding framing errors.
38 What: /sys/class/net/<iface>/cdc_ncm/tx_max
41 Contact: Bjørn Mork <bjorn@mork.no>
43 The maximum NTB size for TX. Cannot exceed the
44 maximum value supported by the device. Must allow at
45 least one max sized datagram plus headers.
47 The actual limits are device dependent. See
50 What: /sys/class/net/<iface>/cdc_ncm/tx_timer_usecs
53 Contact: Bjørn Mork <bjorn@mork.no>
55 Datagram aggregation timeout in µs. The driver will
56 wait up to 3 times this timeout for more datagrams to
57 aggregate before transmitting an NTB frame.
59 Valid range: 5 to 4000000
61 Set to 0 to disable aggregation.
63 The following read-only attributes all represent fields of the
64 structure defined in section 6.2.1 "GetNtbParameters" of "Universal
65 Serial Bus Communications Class Subclass Specifications for Network
66 Control Model Devices" (CDC NCM), Revision 1.0 (Errata 1), November
67 24, 2010 from USB Implementers Forum, Inc. The descriptions are
68 quoted from table 6-3 of CDC NCM: "NTB Parameter Structure".
70 What: /sys/class/net/<iface>/cdc_ncm/bmNtbFormatsSupported
73 Contact: Bjørn Mork <bjorn@mork.no>
75 Bit 0: 16-bit NTB supported (set to 1)
76 Bit 1: 32-bit NTB supported
77 Bits 2 – 15: reserved (reset to zero; must be ignored by host)
79 What: /sys/class/net/<iface>/cdc_ncm/dwNtbInMaxSize
82 Contact: Bjørn Mork <bjorn@mork.no>
84 IN NTB Maximum Size in bytes
86 What: /sys/class/net/<iface>/cdc_ncm/wNdpInDivisor
89 Contact: Bjørn Mork <bjorn@mork.no>
91 Divisor used for IN NTB Datagram payload alignment
93 What: /sys/class/net/<iface>/cdc_ncm/wNdpInPayloadRemainder
96 Contact: Bjørn Mork <bjorn@mork.no>
98 Remainder used to align input datagram payload within
99 the NTB: (Payload Offset) mod (wNdpInDivisor) =
100 wNdpInPayloadRemainder
102 What: /sys/class/net/<iface>/cdc_ncm/wNdpInAlignment
105 Contact: Bjørn Mork <bjorn@mork.no>
107 NDP alignment modulus for NTBs on the IN pipe. Shall
108 be a power of 2, and shall be at least 4.
110 What: /sys/class/net/<iface>/cdc_ncm/dwNtbOutMaxSize
113 Contact: Bjørn Mork <bjorn@mork.no>
117 What: /sys/class/net/<iface>/cdc_ncm/wNdpOutDivisor
120 Contact: Bjørn Mork <bjorn@mork.no>
122 OUT NTB Datagram alignment modulus
124 What: /sys/class/net/<iface>/cdc_ncm/wNdpOutPayloadRemainder
127 Contact: Bjørn Mork <bjorn@mork.no>
129 Remainder used to align output datagram payload
130 offsets within the NTB: Padding, shall be transmitted
131 as zero by function, and ignored by host. (Payload
132 Offset) mod (wNdpOutDivisor) = wNdpOutPayloadRemainder
134 What: /sys/class/net/<iface>/cdc_ncm/wNdpOutAlignment
137 Contact: Bjørn Mork <bjorn@mork.no>
139 NDP alignment modulus for use in NTBs on the OUT
140 pipe. Shall be a power of 2, and shall be at least 4.
142 What: /sys/class/net/<iface>/cdc_ncm/wNtbOutMaxDatagrams
145 Contact: Bjørn Mork <bjorn@mork.no>
147 Maximum number of datagrams that the host may pack
148 into a single OUT NTB. Zero means that the device