forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: cdc_ncm: add "ndp_to_end" sysfs attribute
Adding a writable sysfs attribute for the "NDP to end" quirk flag. This makes it easier for end users to test new devices for this firmware bug. We've been lucky so far, but we should not depend on reporters capable of rebuilding the driver. Cc: Enrico Mioso <[email protected]> Signed-off-by: Bjørn Mork <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,25 @@ Description: | |
Set to 0 to pad all frames. Set greater than tx_max to | ||
disable all padding. | ||
|
||
What: /sys/class/net/<iface>/cdc_ncm/ndp_to_end | ||
Date: Dec 2015 | ||
KernelVersion: 4.5 | ||
Contact: Bjørn Mork <[email protected]> | ||
Description: | ||
Boolean attribute showing the status of the "NDP to | ||
end" quirk. Defaults to 'N', except for devices | ||
already known to need it enabled. | ||
|
||
The "NDP to end" quirk makes the driver place the NDP | ||
(the packet index table) after the payload. The NCM | ||
specification does not mandate this, but some devices | ||
are known to be more restrictive. Write 'Y' to this | ||
attribute for temporary testing of a suspect device | ||
failing to work with the default driver settings. | ||
|
||
A device entry should be added to the driver if this | ||
quirk is found to be required. | ||
|
||
What: /sys/class/net/<iface>/cdc_ncm/rx_max | ||
Date: May 2014 | ||
KernelVersion: 3.16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters