diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2010-05-26 17:44:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 12:12:52 -0400 |
commit | f671be04dcda09f8383ae26072c0e75a79090193 (patch) | |
tree | af2a792dfa28ff1f3b3162543fc519ffedca2366 /Documentation | |
parent | 5fd75a7850b5156aa93c9fb6404adb8f563b6e02 (diff) |
Documentation: add networking driver's mapping error handling to DMA-API-HOWTO
Adds the concrete DMA mapping error handling for Networking drivers on the
transmit path.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/DMA-API-HOWTO.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index 2e435adfbd6b..93d90870791c 100644 --- a/Documentation/DMA-API-HOWTO.txt +++ b/Documentation/DMA-API-HOWTO.txt | |||
@@ -740,6 +740,11 @@ failure can be determined by: | |||
740 | */ | 740 | */ |
741 | } | 741 | } |
742 | 742 | ||
743 | Networking drivers must call dev_kfree_skb to free the socket buffer | ||
744 | and return NETDEV_TX_OK if the DMA mapping fails on the transmit hook | ||
745 | (ndo_start_xmit). This means that the socket buffer is just dropped in | ||
746 | the failure case. | ||
747 | |||
743 | Closing | 748 | Closing |
744 | 749 | ||
745 | This document, and the API itself, would not be in its current | 750 | This document, and the API itself, would not be in its current |