Loading net/rds/af_rds.c +0 −9 Original line number Diff line number Diff line Loading @@ -40,15 +40,6 @@ #include "rds.h" char *rds_str_array(char **array, size_t elements, size_t index) { if ((index < elements) && array[index]) return array[index]; else return "unknown"; } EXPORT_SYMBOL(rds_str_array); /* this is just used for stats gathering :/ */ static DEFINE_SPINLOCK(rds_sock_lock); static unsigned long rds_sock_count; Loading net/rds/ib.h +0 −1 Original line number Diff line number Diff line Loading @@ -339,7 +339,6 @@ u32 rds_ib_ring_completed(struct rds_ib_work_ring *ring, u32 wr_id, u32 oldest); extern wait_queue_head_t rds_ib_ring_empty_wait; /* ib_send.c */ char *rds_ib_wc_status_str(enum ib_wc_status status); void rds_ib_xmit_complete(struct rds_connection *conn); int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off); Loading net/rds/ib_cm.c +3 −33 Original line number Diff line number Diff line Loading @@ -39,36 +39,6 @@ #include "rds.h" #include "ib.h" static char *rds_ib_event_type_strings[] = { #define RDS_IB_EVENT_STRING(foo) \ [IB_EVENT_##foo] = __stringify(IB_EVENT_##foo) RDS_IB_EVENT_STRING(CQ_ERR), RDS_IB_EVENT_STRING(QP_FATAL), RDS_IB_EVENT_STRING(QP_REQ_ERR), RDS_IB_EVENT_STRING(QP_ACCESS_ERR), RDS_IB_EVENT_STRING(COMM_EST), RDS_IB_EVENT_STRING(SQ_DRAINED), RDS_IB_EVENT_STRING(PATH_MIG), RDS_IB_EVENT_STRING(PATH_MIG_ERR), RDS_IB_EVENT_STRING(DEVICE_FATAL), RDS_IB_EVENT_STRING(PORT_ACTIVE), RDS_IB_EVENT_STRING(PORT_ERR), RDS_IB_EVENT_STRING(LID_CHANGE), RDS_IB_EVENT_STRING(PKEY_CHANGE), RDS_IB_EVENT_STRING(SM_CHANGE), RDS_IB_EVENT_STRING(SRQ_ERR), RDS_IB_EVENT_STRING(SRQ_LIMIT_REACHED), RDS_IB_EVENT_STRING(QP_LAST_WQE_REACHED), RDS_IB_EVENT_STRING(CLIENT_REREGISTER), #undef RDS_IB_EVENT_STRING }; static char *rds_ib_event_str(enum ib_event_type type) { return rds_str_array(rds_ib_event_type_strings, ARRAY_SIZE(rds_ib_event_type_strings), type); }; /* * Set the selected protocol version */ Loading Loading @@ -243,7 +213,7 @@ static void rds_ib_cm_fill_conn_param(struct rds_connection *conn, static void rds_ib_cq_event_handler(struct ib_event *event, void *data) { rdsdebug("event %u (%s) data %p\n", event->event, rds_ib_event_str(event->event), data); event->event, ib_event_msg(event->event), data); } static void rds_ib_qp_event_handler(struct ib_event *event, void *data) Loading @@ -252,7 +222,7 @@ static void rds_ib_qp_event_handler(struct ib_event *event, void *data) struct rds_ib_connection *ic = conn->c_transport_data; rdsdebug("conn %p ic %p event %u (%s)\n", conn, ic, event->event, rds_ib_event_str(event->event)); ib_event_msg(event->event)); switch (event->event) { case IB_EVENT_COMM_EST: Loading @@ -261,7 +231,7 @@ static void rds_ib_qp_event_handler(struct ib_event *event, void *data) default: rdsdebug("Fatal QP Event %u (%s) " "- connection %pI4->%pI4, reconnecting\n", event->event, rds_ib_event_str(event->event), event->event, ib_event_msg(event->event), &conn->c_laddr, &conn->c_faddr); rds_conn_drop(conn); break; Loading net/rds/ib_recv.c +2 −2 Original line number Diff line number Diff line Loading @@ -956,7 +956,7 @@ static inline void rds_poll_cq(struct rds_ib_connection *ic, while (ib_poll_cq(ic->i_recv_cq, 1, &wc) > 0) { rdsdebug("wc wr_id 0x%llx status %u (%s) byte_len %u imm_data %u\n", (unsigned long long)wc.wr_id, wc.status, rds_ib_wc_status_str(wc.status), wc.byte_len, ib_wc_status_msg(wc.status), wc.byte_len, be32_to_cpu(wc.ex.imm_data)); rds_ib_stats_inc(s_ib_rx_cq_event); Loading @@ -978,7 +978,7 @@ static inline void rds_poll_cq(struct rds_ib_connection *ic, "status %u (%s), disconnecting and " "reconnecting\n", &conn->c_faddr, wc.status, rds_ib_wc_status_str(wc.status)); ib_wc_status_msg(wc.status)); } /* Loading net/rds/ib_send.c +2 −36 Original line number Diff line number Diff line Loading @@ -39,40 +39,6 @@ #include "rds.h" #include "ib.h" static char *rds_ib_wc_status_strings[] = { #define RDS_IB_WC_STATUS_STR(foo) \ [IB_WC_##foo] = __stringify(IB_WC_##foo) RDS_IB_WC_STATUS_STR(SUCCESS), RDS_IB_WC_STATUS_STR(LOC_LEN_ERR), RDS_IB_WC_STATUS_STR(LOC_QP_OP_ERR), RDS_IB_WC_STATUS_STR(LOC_EEC_OP_ERR), RDS_IB_WC_STATUS_STR(LOC_PROT_ERR), RDS_IB_WC_STATUS_STR(WR_FLUSH_ERR), RDS_IB_WC_STATUS_STR(MW_BIND_ERR), RDS_IB_WC_STATUS_STR(BAD_RESP_ERR), RDS_IB_WC_STATUS_STR(LOC_ACCESS_ERR), RDS_IB_WC_STATUS_STR(REM_INV_REQ_ERR), RDS_IB_WC_STATUS_STR(REM_ACCESS_ERR), RDS_IB_WC_STATUS_STR(REM_OP_ERR), RDS_IB_WC_STATUS_STR(RETRY_EXC_ERR), RDS_IB_WC_STATUS_STR(RNR_RETRY_EXC_ERR), RDS_IB_WC_STATUS_STR(LOC_RDD_VIOL_ERR), RDS_IB_WC_STATUS_STR(REM_INV_RD_REQ_ERR), RDS_IB_WC_STATUS_STR(REM_ABORT_ERR), RDS_IB_WC_STATUS_STR(INV_EECN_ERR), RDS_IB_WC_STATUS_STR(INV_EEC_STATE_ERR), RDS_IB_WC_STATUS_STR(FATAL_ERR), RDS_IB_WC_STATUS_STR(RESP_TIMEOUT_ERR), RDS_IB_WC_STATUS_STR(GENERAL_ERR), #undef RDS_IB_WC_STATUS_STR }; char *rds_ib_wc_status_str(enum ib_wc_status status) { return rds_str_array(rds_ib_wc_status_strings, ARRAY_SIZE(rds_ib_wc_status_strings), status); } /* * Convert IB-specific error message to RDS error message and call core * completion handler. Loading Loading @@ -293,7 +259,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context) while (ib_poll_cq(cq, 1, &wc) > 0) { rdsdebug("wc wr_id 0x%llx status %u (%s) byte_len %u imm_data %u\n", (unsigned long long)wc.wr_id, wc.status, rds_ib_wc_status_str(wc.status), wc.byte_len, ib_wc_status_msg(wc.status), wc.byte_len, be32_to_cpu(wc.ex.imm_data)); rds_ib_stats_inc(s_ib_tx_cq_event); Loading Loading @@ -344,7 +310,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context) rds_ib_conn_error(conn, "send completion on %pI4 had status " "%u (%s), disconnecting and reconnecting\n", &conn->c_faddr, wc.status, rds_ib_wc_status_str(wc.status)); ib_wc_status_msg(wc.status)); } } } Loading Loading
net/rds/af_rds.c +0 −9 Original line number Diff line number Diff line Loading @@ -40,15 +40,6 @@ #include "rds.h" char *rds_str_array(char **array, size_t elements, size_t index) { if ((index < elements) && array[index]) return array[index]; else return "unknown"; } EXPORT_SYMBOL(rds_str_array); /* this is just used for stats gathering :/ */ static DEFINE_SPINLOCK(rds_sock_lock); static unsigned long rds_sock_count; Loading
net/rds/ib.h +0 −1 Original line number Diff line number Diff line Loading @@ -339,7 +339,6 @@ u32 rds_ib_ring_completed(struct rds_ib_work_ring *ring, u32 wr_id, u32 oldest); extern wait_queue_head_t rds_ib_ring_empty_wait; /* ib_send.c */ char *rds_ib_wc_status_str(enum ib_wc_status status); void rds_ib_xmit_complete(struct rds_connection *conn); int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off); Loading
net/rds/ib_cm.c +3 −33 Original line number Diff line number Diff line Loading @@ -39,36 +39,6 @@ #include "rds.h" #include "ib.h" static char *rds_ib_event_type_strings[] = { #define RDS_IB_EVENT_STRING(foo) \ [IB_EVENT_##foo] = __stringify(IB_EVENT_##foo) RDS_IB_EVENT_STRING(CQ_ERR), RDS_IB_EVENT_STRING(QP_FATAL), RDS_IB_EVENT_STRING(QP_REQ_ERR), RDS_IB_EVENT_STRING(QP_ACCESS_ERR), RDS_IB_EVENT_STRING(COMM_EST), RDS_IB_EVENT_STRING(SQ_DRAINED), RDS_IB_EVENT_STRING(PATH_MIG), RDS_IB_EVENT_STRING(PATH_MIG_ERR), RDS_IB_EVENT_STRING(DEVICE_FATAL), RDS_IB_EVENT_STRING(PORT_ACTIVE), RDS_IB_EVENT_STRING(PORT_ERR), RDS_IB_EVENT_STRING(LID_CHANGE), RDS_IB_EVENT_STRING(PKEY_CHANGE), RDS_IB_EVENT_STRING(SM_CHANGE), RDS_IB_EVENT_STRING(SRQ_ERR), RDS_IB_EVENT_STRING(SRQ_LIMIT_REACHED), RDS_IB_EVENT_STRING(QP_LAST_WQE_REACHED), RDS_IB_EVENT_STRING(CLIENT_REREGISTER), #undef RDS_IB_EVENT_STRING }; static char *rds_ib_event_str(enum ib_event_type type) { return rds_str_array(rds_ib_event_type_strings, ARRAY_SIZE(rds_ib_event_type_strings), type); }; /* * Set the selected protocol version */ Loading Loading @@ -243,7 +213,7 @@ static void rds_ib_cm_fill_conn_param(struct rds_connection *conn, static void rds_ib_cq_event_handler(struct ib_event *event, void *data) { rdsdebug("event %u (%s) data %p\n", event->event, rds_ib_event_str(event->event), data); event->event, ib_event_msg(event->event), data); } static void rds_ib_qp_event_handler(struct ib_event *event, void *data) Loading @@ -252,7 +222,7 @@ static void rds_ib_qp_event_handler(struct ib_event *event, void *data) struct rds_ib_connection *ic = conn->c_transport_data; rdsdebug("conn %p ic %p event %u (%s)\n", conn, ic, event->event, rds_ib_event_str(event->event)); ib_event_msg(event->event)); switch (event->event) { case IB_EVENT_COMM_EST: Loading @@ -261,7 +231,7 @@ static void rds_ib_qp_event_handler(struct ib_event *event, void *data) default: rdsdebug("Fatal QP Event %u (%s) " "- connection %pI4->%pI4, reconnecting\n", event->event, rds_ib_event_str(event->event), event->event, ib_event_msg(event->event), &conn->c_laddr, &conn->c_faddr); rds_conn_drop(conn); break; Loading
net/rds/ib_recv.c +2 −2 Original line number Diff line number Diff line Loading @@ -956,7 +956,7 @@ static inline void rds_poll_cq(struct rds_ib_connection *ic, while (ib_poll_cq(ic->i_recv_cq, 1, &wc) > 0) { rdsdebug("wc wr_id 0x%llx status %u (%s) byte_len %u imm_data %u\n", (unsigned long long)wc.wr_id, wc.status, rds_ib_wc_status_str(wc.status), wc.byte_len, ib_wc_status_msg(wc.status), wc.byte_len, be32_to_cpu(wc.ex.imm_data)); rds_ib_stats_inc(s_ib_rx_cq_event); Loading @@ -978,7 +978,7 @@ static inline void rds_poll_cq(struct rds_ib_connection *ic, "status %u (%s), disconnecting and " "reconnecting\n", &conn->c_faddr, wc.status, rds_ib_wc_status_str(wc.status)); ib_wc_status_msg(wc.status)); } /* Loading
net/rds/ib_send.c +2 −36 Original line number Diff line number Diff line Loading @@ -39,40 +39,6 @@ #include "rds.h" #include "ib.h" static char *rds_ib_wc_status_strings[] = { #define RDS_IB_WC_STATUS_STR(foo) \ [IB_WC_##foo] = __stringify(IB_WC_##foo) RDS_IB_WC_STATUS_STR(SUCCESS), RDS_IB_WC_STATUS_STR(LOC_LEN_ERR), RDS_IB_WC_STATUS_STR(LOC_QP_OP_ERR), RDS_IB_WC_STATUS_STR(LOC_EEC_OP_ERR), RDS_IB_WC_STATUS_STR(LOC_PROT_ERR), RDS_IB_WC_STATUS_STR(WR_FLUSH_ERR), RDS_IB_WC_STATUS_STR(MW_BIND_ERR), RDS_IB_WC_STATUS_STR(BAD_RESP_ERR), RDS_IB_WC_STATUS_STR(LOC_ACCESS_ERR), RDS_IB_WC_STATUS_STR(REM_INV_REQ_ERR), RDS_IB_WC_STATUS_STR(REM_ACCESS_ERR), RDS_IB_WC_STATUS_STR(REM_OP_ERR), RDS_IB_WC_STATUS_STR(RETRY_EXC_ERR), RDS_IB_WC_STATUS_STR(RNR_RETRY_EXC_ERR), RDS_IB_WC_STATUS_STR(LOC_RDD_VIOL_ERR), RDS_IB_WC_STATUS_STR(REM_INV_RD_REQ_ERR), RDS_IB_WC_STATUS_STR(REM_ABORT_ERR), RDS_IB_WC_STATUS_STR(INV_EECN_ERR), RDS_IB_WC_STATUS_STR(INV_EEC_STATE_ERR), RDS_IB_WC_STATUS_STR(FATAL_ERR), RDS_IB_WC_STATUS_STR(RESP_TIMEOUT_ERR), RDS_IB_WC_STATUS_STR(GENERAL_ERR), #undef RDS_IB_WC_STATUS_STR }; char *rds_ib_wc_status_str(enum ib_wc_status status) { return rds_str_array(rds_ib_wc_status_strings, ARRAY_SIZE(rds_ib_wc_status_strings), status); } /* * Convert IB-specific error message to RDS error message and call core * completion handler. Loading Loading @@ -293,7 +259,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context) while (ib_poll_cq(cq, 1, &wc) > 0) { rdsdebug("wc wr_id 0x%llx status %u (%s) byte_len %u imm_data %u\n", (unsigned long long)wc.wr_id, wc.status, rds_ib_wc_status_str(wc.status), wc.byte_len, ib_wc_status_msg(wc.status), wc.byte_len, be32_to_cpu(wc.ex.imm_data)); rds_ib_stats_inc(s_ib_tx_cq_event); Loading Loading @@ -344,7 +310,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context) rds_ib_conn_error(conn, "send completion on %pI4 had status " "%u (%s), disconnecting and reconnecting\n", &conn->c_faddr, wc.status, rds_ib_wc_status_str(wc.status)); ib_wc_status_msg(wc.status)); } } } Loading