]> git.baikalelectronics.ru Git - kernel.git/commit
net_dma: acquire/release dma channels on ifup/ifdown
authorDan Williams <dan.j.williams@intel.com>
Sun, 11 Jan 2009 08:20:39 +0000 (00:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jan 2009 08:20:39 +0000 (00:20 -0800)
commitfdb1045d1582ba3beb131b6cbfc357a8a28ef3de
tree84ff8e44e5b44bbe3c388eded5c3e28bf0bd2375
parent9436a5a96f007e9e0a5c5a353f95fec4d0e04abc
net_dma: acquire/release dma channels on ifup/ifdown

The recent dmaengine rework removed the capability to remove dma device
driver modules while net_dma is active.  Rather than notify
dmaengine-clients that channels are trying to be removed, we now rely on
clients to notify dmaengine when they no longer have a need for
channels.  Teach net_dma to release channels by taking dmaengine
references at netdevice open and dropping references at netdevice close.

Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dmaengine.h
net/core/dev.c