|
@@ -367,26 +367,6 @@ struct hfi1_packet {
|
|
|
u8 etype;
|
|
|
};
|
|
|
|
|
|
-/*
|
|
|
- * Private data for snoop/capture support.
|
|
|
- */
|
|
|
-struct hfi1_snoop_data {
|
|
|
- int mode_flag;
|
|
|
- struct cdev cdev;
|
|
|
- struct device *class_dev;
|
|
|
- /* protect snoop data */
|
|
|
- spinlock_t snoop_lock;
|
|
|
- struct list_head queue;
|
|
|
- wait_queue_head_t waitq;
|
|
|
- void *filter_value;
|
|
|
- int (*filter_callback)(void *hdr, void *data, void *value);
|
|
|
- u64 dcc_cfg; /* saved value of DCC Cfg register */
|
|
|
-};
|
|
|
-
|
|
|
-/* snoop mode_flag values */
|
|
|
-#define HFI1_PORT_SNOOP_MODE 1U
|
|
|
-#define HFI1_PORT_CAPTURE_MODE 2U
|
|
|
-
|
|
|
struct rvt_sge_state;
|
|
|
|
|
|
/*
|
|
@@ -1104,8 +1084,6 @@ struct hfi1_devdata {
|
|
|
char *portcntrnames;
|
|
|
size_t portcntrnameslen;
|
|
|
|
|
|
- struct hfi1_snoop_data hfi1_snoop;
|
|
|
-
|
|
|
struct err_info_rcvport err_info_rcvport;
|
|
|
struct err_info_constraint err_info_rcv_constraint;
|
|
|
struct err_info_constraint err_info_xmit_constraint;
|
|
@@ -1141,8 +1119,8 @@ struct hfi1_devdata {
|
|
|
rhf_rcv_function_ptr normal_rhf_rcv_functions[8];
|
|
|
|
|
|
/*
|
|
|
- * Handlers for outgoing data so that snoop/capture does not
|
|
|
- * have to have its hooks in the send path
|
|
|
+ * Capability to have different send engines simply by changing a
|
|
|
+ * pointer value.
|
|
|
*/
|
|
|
send_routine process_pio_send;
|
|
|
send_routine process_dma_send;
|
|
@@ -1225,8 +1203,6 @@ struct hfi1_devdata *hfi1_lookup(int unit);
|
|
|
extern u32 hfi1_cpulist_count;
|
|
|
extern unsigned long *hfi1_cpulist;
|
|
|
|
|
|
-extern unsigned int snoop_drop_send;
|
|
|
-extern unsigned int snoop_force_capture;
|
|
|
int hfi1_init(struct hfi1_devdata *, int);
|
|
|
int hfi1_count_units(int *npresentp, int *nupp);
|
|
|
int hfi1_count_active_units(void);
|
|
@@ -1561,13 +1537,6 @@ void set_up_vl15(struct hfi1_devdata *dd, u8 vau, u16 vl15buf);
|
|
|
void reset_link_credits(struct hfi1_devdata *dd);
|
|
|
void assign_remote_cm_au_table(struct hfi1_devdata *dd, u8 vcu);
|
|
|
|
|
|
-int snoop_recv_handler(struct hfi1_packet *packet);
|
|
|
-int snoop_send_dma_handler(struct rvt_qp *qp, struct hfi1_pkt_state *ps,
|
|
|
- u64 pbc);
|
|
|
-int snoop_send_pio_handler(struct rvt_qp *qp, struct hfi1_pkt_state *ps,
|
|
|
- u64 pbc);
|
|
|
-void snoop_inline_pio_send(struct hfi1_devdata *dd, struct pio_buf *pbuf,
|
|
|
- u64 pbc, const void *from, size_t count);
|
|
|
int set_buffer_control(struct hfi1_pportdata *ppd, struct buffer_control *bc);
|
|
|
|
|
|
static inline struct hfi1_devdata *dd_from_ppd(struct hfi1_pportdata *ppd)
|
|
@@ -1803,8 +1772,6 @@ int kdeth_process_expected(struct hfi1_packet *packet);
|
|
|
int kdeth_process_eager(struct hfi1_packet *packet);
|
|
|
int process_receive_invalid(struct hfi1_packet *packet);
|
|
|
|
|
|
-extern rhf_rcv_function_ptr snoop_rhf_rcv_functions[8];
|
|
|
-
|
|
|
void update_sge(struct rvt_sge_state *ss, u32 length);
|
|
|
|
|
|
/* global module parameter variables */
|
|
@@ -1831,9 +1798,6 @@ extern struct mutex hfi1_mutex;
|
|
|
#define DRIVER_NAME "hfi1"
|
|
|
#define HFI1_USER_MINOR_BASE 0
|
|
|
#define HFI1_TRACE_MINOR 127
|
|
|
-#define HFI1_DIAGPKT_MINOR 128
|
|
|
-#define HFI1_DIAG_MINOR_BASE 129
|
|
|
-#define HFI1_SNOOP_CAPTURE_BASE 200
|
|
|
#define HFI1_NMINORS 255
|
|
|
|
|
|
#define PCI_VENDOR_ID_INTEL 0x8086
|