]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cxgb3: map entire Rx page, feed map+offset to Rx ring.
authorDivy Le Ray <divy@chelsio.com>
Thu, 26 Mar 2009 16:39:29 +0000 (16:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2009 07:46:59 +0000 (00:46 -0700)
commit5e68b772e6efd189d6aca76f6872fb75d51ace60
tree88a988918d021d397756790d89c8801adb131195
parent952cdf333f9d1b0b71f1b9a3c5e421a2673ed7de
cxgb3: map entire Rx page, feed map+offset to Rx ring.

DMA mapping can be expensive in the presence of iommus.
Reduce the Rx iommu activity by mapping an entire page, and provide the H/W
the mapped address + offset of the current page chunk.
Reserve bits at the end of the page to track mapping references, so the page
can be unmapped.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/adapter.h
drivers/net/cxgb3/sge.c [changed mode: 0755->0644]