From: FUJITA Tomonori Date: Wed, 26 May 2010 21:44:19 +0000 (-0700) Subject: Documentation: add networking driver's mapping error handling to DMA-API-HOWTO X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f671be04dcda09f8383ae26072c0e75a79090193;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Acked-by: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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: */ } +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