Skip to content

Commit b90c7e9

Browse files
ddalessajgunthorpe
authored andcommitted
RDMA/hfi1: Remove all traces of diagpkt support
One of the concessions we made to get our driver upstream was to remove the diagnostic packet support. There is however still some cruft that was left over. Remove it. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 1994c31 commit b90c7e9

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

drivers/infiniband/hw/hfi1/common.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -137,29 +137,6 @@
137137
#define HFI1_USER_SWVERSION ((HFI1_USER_SWMAJOR << HFI1_SWMAJOR_SHIFT) | \
138138
HFI1_USER_SWMINOR)
139139

140-
/*
141-
* Diagnostics can send a packet by writing the following
142-
* struct to the diag packet special file.
143-
*
144-
* This allows a custom PBC qword, so that special modes and deliberate
145-
* changes to CRCs can be used.
146-
*/
147-
#define _DIAG_PKT_VERS 1
148-
struct diag_pkt {
149-
__u16 version; /* structure version */
150-
__u16 unit; /* which device */
151-
__u16 sw_index; /* send sw index to use */
152-
__u16 len; /* data length, in bytes */
153-
__u16 port; /* port number */
154-
__u16 unused;
155-
__u32 flags; /* call flags */
156-
__u64 data; /* user data pointer */
157-
__u64 pbc; /* PBC for the packet */
158-
};
159-
160-
/* diag_pkt flags */
161-
#define F_DIAGPKT_WAIT 0x1 /* wait until packet is sent */
162-
163140
/*
164141
* The next set of defines are for packet headers, and chip register
165142
* and memory bits that are visible to and/or used by user-mode software.

0 commit comments

Comments
 (0)