summaryrefslogtreecommitdiff
path: root/drivers/staging/rdma/hfi1/user_pages.c
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-02-05 16:57:58 (GMT)
committerDoug Ledford <dledford@redhat.com>2016-02-29 22:10:39 (GMT)
commit0b091fb32c5ae4737bf606a313e6625dad34bbc6 (patch)
tree27874d46baa52eb329a4db0e1b7e48dbcd20bce0 /drivers/staging/rdma/hfi1/user_pages.c
parent7e7a436ecb6e703a232df0613b5f24accbe3d7d2 (diff)
downloadlinux-0b091fb32c5ae4737bf606a313e6625dad34bbc6.tar.xz
staging/hfi1: Enable TID caching feature
This commit "flips the switch" on the TID caching feature implemented in this patch series. As well as enabling the new feature by tying the new function with the PSM API, it also cleans up the old unneeded code, data structure members, and variables. Due to difference in operation and information, the tracing functions related to expected receives had to be changed. This patch include these changes. The tracing function changes could not be split into a separate commit without including both tracing variants at the same time. This would have caused other complications and ugliness. Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/user_pages.c')
-rw-r--r--drivers/staging/rdma/hfi1/user_pages.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/staging/rdma/hfi1/user_pages.c b/drivers/staging/rdma/hfi1/user_pages.c
index 692de65..1854c0c 100644
--- a/drivers/staging/rdma/hfi1/user_pages.c
+++ b/drivers/staging/rdma/hfi1/user_pages.c
@@ -54,20 +54,6 @@
#include "hfi.h"
-/**
- * hfi1_map_page - a safety wrapper around pci_map_page()
- *
- */
-dma_addr_t hfi1_map_page(struct pci_dev *hwdev, struct page *page,
- unsigned long offset, size_t size, int direction)
-{
- dma_addr_t phys;
-
- phys = pci_map_page(hwdev, page, offset, size, direction);
-
- return phys;
-}
-
int hfi1_acquire_user_pages(unsigned long vaddr, size_t npages, bool writable,
struct page **pages)
{