diff options
author | Robert Jennings <[email protected]> | 2008-07-24 04:34:52 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2008-07-25 15:44:44 +1000 |
commit | 1096d63d8e7d226630706e15648705d0187787e4 (patch) | |
tree | 0233951b529ee7b537d527e6d57c8e5d80d48ae7 /fs/jbd2/commit.c | |
parent | ea866e6526b8a2ead92875732d41b26fdb470312 (diff) |
ibmveth: enable driver for CMO
Enable ibmveth for Cooperative Memory Overcommitment (CMO). For this driver
it means calculating a desired amount of IO memory based on the current MTU
and updating this value with the bus when MTU changes occur. Because DMA
mappings can fail, we have added a bounce buffer for temporary cases where
the driver can not map IO memory for the buffer pool.
The following changes are made to enable the driver for CMO:
* DMA mapping errors will not result in error messages if entitlement has
been exceeded and resources were not available.
* DMA mapping errors are handled gracefully, ibmveth_replenish_buffer_pool()
is corrected to check the return from dma_map_single and fail gracefully.
* The driver will have a get_desired_dma function defined to function
in a CMO environment.
* When the MTU is changed, the driver will update the device IO entitlement
Signed-off-by: Robert Jennings <[email protected]>
Signed-off-by: Brian King <[email protected]>
Signed-off-by: Santiago Leon <[email protected]>
Acked-by: Paul Mackerras <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions