summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-02-05 16:57:48 (GMT)
committerDoug Ledford <dledford@redhat.com>2016-02-29 22:10:38 (GMT)
commit955ad36dcde4639664253c2bd39f626cd88d2acf (patch)
tree5c19ed28b55591623bbc6360bd2dfca8203bbeb9 /drivers
parent462075a6ea85aa1cf6ee1620a232c483dfd4b520 (diff)
downloadlinux-955ad36dcde4639664253c2bd39f626cd88d2acf.tar.xz
uapi/hfi1_user: Add command and event for TID caching
TID caching will use a new event to signal userland that cache invalidation has occurred and needs a matching command code that will be used to read the invalidated TIDs. Add the event bit and the new command to the exported header file. The command is also added to the switch() statement in file_ops.c for completeness and in preparation for its usage later. 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')
-rw-r--r--drivers/staging/rdma/hfi1/file_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/file_ops.c
index d57d549..c666935 100644
--- a/drivers/staging/rdma/hfi1/file_ops.c
+++ b/drivers/staging/rdma/hfi1/file_ops.c
@@ -241,6 +241,7 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
must_be_root = 1; /* validate user */
copy = 0;
break;
+ case HFI1_CMD_TID_INVAL_READ:
default:
ret = -EINVAL;
goto bail;