IB/mthca: Always fill MTTs from CPU
Speed up memory registration by filling in MTTs directly when the CPU can write directly to the whole table (all mem-free cards, and to Tavor mode on 64-bit systems with the patch I posted earlier). This reduces the number of FW commands needed to register an MR by at least a factor of 2 and speeds up memory registration significantly. Signed-off-by:Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
Showing
- drivers/infiniband/hw/mthca/mthca_dev.h 2 additions, 0 deletionsdrivers/infiniband/hw/mthca/mthca_dev.h
- drivers/infiniband/hw/mthca/mthca_mr.c 80 additions, 2 deletionsdrivers/infiniband/hw/mthca/mthca_mr.c
- drivers/infiniband/hw/mthca/mthca_provider.c 7 additions, 7 deletionsdrivers/infiniband/hw/mthca/mthca_provider.c
Please register or sign in to comment