projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd75a7
)
Documentation: add networking driver's mapping error handling to DMA-API-HOWTO
author
FUJITA Tomonori
<
[email protected]
>
Wed, 26 May 2010 21:44:19 +0000
(14:44 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 27 May 2010 16:12:52 +0000
(09:12 -0700)
Adds the concrete DMA mapping error handling for Networking drivers on the
transmit path.
Signed-off-by: FUJITA Tomonori <
[email protected]
>
Acked-by: David S. Miller <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
Documentation/DMA-API-HOWTO.txt
patch
|
blob
|
history
diff --git
a/Documentation/DMA-API-HOWTO.txt
b/Documentation/DMA-API-HOWTO.txt
index 2e435adfbd6bbedfbe913c38e1c51a9c2db036e9..93d90870791cea8ae9082186fe4a1d9813ca71e0 100644
(file)
--- a/
Documentation/DMA-API-HOWTO.txt
+++ b/
Documentation/DMA-API-HOWTO.txt
@@
-740,6
+740,11
@@
failure can be determined by:
*/
}
+Networking drivers must call dev_kfree_skb to free the socket buffer
+and return NETDEV_TX_OK if the DMA mapping fails on the transmit hook
+(ndo_start_xmit). This means that the socket buffer is just dropped in
+the failure case.
+
Closing
This document, and the API itself, would not be in its current