LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0010-IB-hfi1-Remove-write-use-ioctl-for-user-cmds.patch of Package linux-glibc-devel (Project home:michal-m:branches:SUSE:SLE-12-SP3:GA)

From 380fb942888e7afc3420ce195a5188ff73b5a782 Mon Sep 17 00:00:00 2001
From: Dennis Dalessandro <dennis.dalessandro@intel.com>
Date: Thu, 19 May 2016 05:26:31 -0700
Subject: [PATCH 10/18] IB/hfi1: Remove write(), use ioctl() for user cmds
Git-commit: 380fb942888e7afc3420ce195a5188ff73b5a782
Patch-mainline: v4.7-rc1
References: FATE#321231 FATE#321473, bsc#1040698

Remove the write() handler for user space commands now that ioctl
handling is available. User apps will need to change to use ioctl from
this point forward.

Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Acked-by: Michal Marek <mmarek@suse.com>

---
 usr/include/rdma/hfi/hfi1_user.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/usr/include/rdma/hfi/hfi1_user.h b/usr/include/rdma/hfi/hfi1_user.h
index 9784159c9d52..98bebf8bef55 100644
--- a/usr/include/rdma/hfi/hfi1_user.h
+++ b/usr/include/rdma/hfi/hfi1_user.h
@@ -66,7 +66,7 @@
  * The major version changes when data structures change in an incompatible
  * way. The driver must be the same for initialization to succeed.
  */
-#define HFI1_USER_SWMAJOR 5
+#define HFI1_USER_SWMAJOR 6
 
 /*
  * Minor version differences are always compatible
@@ -265,12 +265,6 @@ struct hfi1_tid_info {
 	__u32 length;
 };
 
-struct hfi1_cmd {
-	__u32 type;        /* command type */
-	__u32 len;         /* length of struct pointed to by add */
-	__u64 addr;        /* pointer to user structure */
-};
-
 enum hfi1_sdma_comp_state {
 	FREE = 0,
 	QUEUED,
-- 
2.10.2