From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: + documentation-add-networking-drivers-mapping-error-handling-to-dma-api-howto.patch added to -mm tree Date: Mon, 10 May 2010 15:26:22 -0700 Message-ID: <201005102226.o4AMQMQK026215@imap1.linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:42740 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442Ab0EJW01 (ORCPT ); Mon, 10 May 2010 18:26:27 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org Cc: fujita.tomonori@lab.ntt.co.jp, davem@davemloft.net The patch titled Documentation: add networking driver's mapping error handling to DMA-API-HOWTO has been added to the -mm tree. Its filename is documentation-add-networking-drivers-mapping-error-handling-to-dma-api-howto.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: Documentation: add networking driver's mapping error handling to DMA-API-HOWTO From: FUJITA Tomonori 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 --- Documentation/DMA-API-HOWTO.txt | 5 +++++ 1 file changed, 5 insertions(+) diff -puN Documentation/DMA-API-HOWTO.txt~documentation-add-networking-drivers-mapping-error-handling-to-dma-api-howto Documentation/DMA-API-HOWTO.txt --- a/Documentation/DMA-API-HOWTO.txt~documentation-add-networking-drivers-mapping-error-handling-to-dma-api-howto +++ a/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 _ Patches currently in -mm which might be from fujita.tomonori@lab.ntt.co.jp are dma-mapping-fix-dma_sync_single_range_.patch linux-next.patch scsi-add-__init-__exit-macros-to-ibmvstgtc.patch ia64-remove-unnecessary-sync_single_range_-in-swiotlb_dma_ops.patch x86-remove-unnecessary-sync_single_range_-in-swiotlb_dma_ops.patch powerpc-remove-unnecessary-sync_single_range_-in-swiotlb_dma_ops.patch swiotlb-remove-unnecessary-swiotlb_sync_single_range_.patch dma-mapping-remove-unnecessary-sync_single_range_-in-dma_map_ops.patch documentation-add-networking-drivers-mapping-error-handling-to-dma-api-howto.patch ssb-add-dma_dev-to-ssb_device-structure.patch b43legacy-replace-the-ssb_dma-api-with-the-generic-dma-api.patch b43-replace-the-ssb_dma-api-with-the-generic-dma-api.patch b44-replace-the-ssb_dma-api-with-the-generic-dma-api.patch ssb-remove-the-ssb-dma-api.patch asm-generic-remove-isa_dma_threshold-in-scatterlisth.patch asm-generic-add-need_sg_dma_length-to-define-sg_dma_len.patch x86_32-use-asm-generic-scatterlisth.patch powerpc-use-asm-generic-scatterlisth.patch alpha-use-asm-generic-scatterlisth.patch asm-generic-remove-arch_has_sg_chain-in-scatterlisth.patch avr32-use-asm-generic-scatterlisth.patch cris-use-asm-generic-scatterlisth.patch h8300-use-asm-generic-scatterlisth.patch m32r-use-use-asm-generic-scatterlisth.patch m68k-use-asm-generic-scatterlisth.patch mips-use-use-asm-generic-scatterlisth.patch xtensa-use-use-asm-generic-scatterlisth.patch blackfin-use-use-asm-generic-scatterlisth.patch frv-use-asm-generic-scatterlisth.patch mn10300-use-asm-generic-scatterlisth.patch parisc-use-asm-generic-scatterlisth.patch