From: Christoph Hellwig Subject: Re: [PATCH][6/12][RFC/v1] Add IPoIB (IP-over-InfiniBand) driver Date: Mon, 22 Nov 2004 20:04:39 +0000 Message-ID: <20041122200439.GA9635@infradead.org> References: <200411181046.6Dz1IPtDKfpgSXN9@topspin.com> <200411181046.Jj0jsF5E2KmiGN8f@topspin.com> <20041118200017.GA26976@infradead.org> <52sm71ex0l.fsf@topspin.com> <20041122153456.GA4905@infradead.org> <521xelemsm.fsf@topspin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , netdev@oss.sgi.com Return-path: To: Roland Dreier Content-Disposition: inline In-Reply-To: <521xelemsm.fsf@topspin.com> Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org On Mon, Nov 22, 2004 at 10:55:21AM -0800, Roland Dreier wrote: > Christoph> That just means avoidable interface changes sooner or > Christoph> later. The dma_ interfaces also have the added benefit > Christoph> of allowing better control of the type of consistant > Christoph> allocation interface. > > Is there a dma_xxx equivalent to DECLARE_PCI_UNMAP_ADDR(), > pci_unmap_addr_set() and friends, or does a driver always have to save > off the DMA address from dma_map_xxx? Good question. In pratice I can't find a case were DECLARE_PCI_UNMAP_ADDR() wouldn't simply work for dma_*, but we should probably document that somewhere.