|
@@ -112,9 +112,9 @@ static void connect_reply_upcall(struct iwch_ep *ep, int status);
|
|
|
|
|
|
static void start_ep_timer(struct iwch_ep *ep)
|
|
|
{
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
if (timer_pending(&ep->timer)) {
|
|
|
- PDBG("%s stopped / restarted timer ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s stopped / restarted timer ep %p\n", __func__, ep);
|
|
|
del_timer_sync(&ep->timer);
|
|
|
} else
|
|
|
get_ep(&ep->com);
|
|
@@ -126,7 +126,7 @@ static void start_ep_timer(struct iwch_ep *ep)
|
|
|
|
|
|
static void stop_ep_timer(struct iwch_ep *ep)
|
|
|
{
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
if (!timer_pending(&ep->timer)) {
|
|
|
WARN(1, "%s timer stopped when its not running! ep %p state %u\n",
|
|
|
__func__, ep, ep->com.state);
|
|
@@ -227,13 +227,13 @@ int iwch_resume_tid(struct iwch_ep *ep)
|
|
|
|
|
|
static void set_emss(struct iwch_ep *ep, u16 opt)
|
|
|
{
|
|
|
- PDBG("%s ep %p opt %u\n", __func__, ep, opt);
|
|
|
+ pr_debug("%s ep %p opt %u\n", __func__, ep, opt);
|
|
|
ep->emss = T3C_DATA(ep->com.tdev)->mtus[G_TCPOPT_MSS(opt)] - 40;
|
|
|
if (G_TCPOPT_TSTAMP(opt))
|
|
|
ep->emss -= 12;
|
|
|
if (ep->emss < 128)
|
|
|
ep->emss = 128;
|
|
|
- PDBG("emss=%d\n", ep->emss);
|
|
|
+ pr_debug("emss=%d\n", ep->emss);
|
|
|
}
|
|
|
|
|
|
static enum iwch_ep_state state_read(struct iwch_ep_common *epc)
|
|
@@ -257,7 +257,7 @@ static void state_set(struct iwch_ep_common *epc, enum iwch_ep_state new)
|
|
|
unsigned long flags;
|
|
|
|
|
|
spin_lock_irqsave(&epc->lock, flags);
|
|
|
- PDBG("%s - %s -> %s\n", __func__, states[epc->state], states[new]);
|
|
|
+ pr_debug("%s - %s -> %s\n", __func__, states[epc->state], states[new]);
|
|
|
__state_set(epc, new);
|
|
|
spin_unlock_irqrestore(&epc->lock, flags);
|
|
|
return;
|
|
@@ -273,7 +273,7 @@ static void *alloc_ep(int size, gfp_t gfp)
|
|
|
spin_lock_init(&epc->lock);
|
|
|
init_waitqueue_head(&epc->waitq);
|
|
|
}
|
|
|
- PDBG("%s alloc ep %p\n", __func__, epc);
|
|
|
+ pr_debug("%s alloc ep %p\n", __func__, epc);
|
|
|
return epc;
|
|
|
}
|
|
|
|
|
@@ -282,7 +282,8 @@ void __free_ep(struct kref *kref)
|
|
|
struct iwch_ep *ep;
|
|
|
ep = container_of(container_of(kref, struct iwch_ep_common, kref),
|
|
|
struct iwch_ep, com);
|
|
|
- PDBG("%s ep %p state %s\n", __func__, ep, states[state_read(&ep->com)]);
|
|
|
+ pr_debug("%s ep %p state %s\n",
|
|
|
+ __func__, ep, states[state_read(&ep->com)]);
|
|
|
if (test_bit(RELEASE_RESOURCES, &ep->com.flags)) {
|
|
|
cxgb3_remove_tid(ep->com.tdev, (void *)ep, ep->hwtid);
|
|
|
dst_release(ep->dst);
|
|
@@ -293,7 +294,7 @@ void __free_ep(struct kref *kref)
|
|
|
|
|
|
static void release_ep_resources(struct iwch_ep *ep)
|
|
|
{
|
|
|
- PDBG("%s ep %p tid %d\n", __func__, ep, ep->hwtid);
|
|
|
+ pr_debug("%s ep %p tid %d\n", __func__, ep, ep->hwtid);
|
|
|
set_bit(RELEASE_RESOURCES, &ep->com.flags);
|
|
|
put_ep(&ep->com);
|
|
|
}
|
|
@@ -358,7 +359,7 @@ static unsigned int find_best_mtu(const struct t3c_data *d, unsigned short mtu)
|
|
|
|
|
|
static void arp_failure_discard(struct t3cdev *dev, struct sk_buff *skb)
|
|
|
{
|
|
|
- PDBG("%s t3cdev %p\n", __func__, dev);
|
|
|
+ pr_debug("%s t3cdev %p\n", __func__, dev);
|
|
|
kfree_skb(skb);
|
|
|
}
|
|
|
|
|
@@ -379,7 +380,7 @@ static void abort_arp_failure(struct t3cdev *dev, struct sk_buff *skb)
|
|
|
{
|
|
|
struct cpl_abort_req *req = cplhdr(skb);
|
|
|
|
|
|
- PDBG("%s t3cdev %p\n", __func__, dev);
|
|
|
+ pr_debug("%s t3cdev %p\n", __func__, dev);
|
|
|
req->cmd = CPL_ABORT_NO_RST;
|
|
|
iwch_cxgb3_ofld_send(dev, skb);
|
|
|
}
|
|
@@ -389,7 +390,7 @@ static int send_halfclose(struct iwch_ep *ep, gfp_t gfp)
|
|
|
struct cpl_close_con_req *req;
|
|
|
struct sk_buff *skb;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
skb = get_skb(NULL, sizeof(*req), gfp);
|
|
|
if (!skb) {
|
|
|
pr_err("%s - failed to alloc skb\n", __func__);
|
|
@@ -408,7 +409,7 @@ static int send_abort(struct iwch_ep *ep, struct sk_buff *skb, gfp_t gfp)
|
|
|
{
|
|
|
struct cpl_abort_req *req;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
skb = get_skb(skb, sizeof(*req), gfp);
|
|
|
if (!skb) {
|
|
|
pr_err("%s - failed to alloc skb\n", __func__);
|
|
@@ -433,7 +434,7 @@ static int send_connect(struct iwch_ep *ep)
|
|
|
unsigned int mtu_idx;
|
|
|
int wscale;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
|
|
|
skb = get_skb(NULL, sizeof(*req), GFP_KERNEL);
|
|
|
if (!skb) {
|
|
@@ -476,7 +477,7 @@ static void send_mpa_req(struct iwch_ep *ep, struct sk_buff *skb)
|
|
|
struct mpa_message *mpa;
|
|
|
int len;
|
|
|
|
|
|
- PDBG("%s ep %p pd_len %d\n", __func__, ep, ep->plen);
|
|
|
+ pr_debug("%s ep %p pd_len %d\n", __func__, ep, ep->plen);
|
|
|
|
|
|
BUG_ON(skb_cloned(skb));
|
|
|
|
|
@@ -536,7 +537,7 @@ static int send_mpa_reject(struct iwch_ep *ep, const void *pdata, u8 plen)
|
|
|
struct mpa_message *mpa;
|
|
|
struct sk_buff *skb;
|
|
|
|
|
|
- PDBG("%s ep %p plen %d\n", __func__, ep, plen);
|
|
|
+ pr_debug("%s ep %p plen %d\n", __func__, ep, plen);
|
|
|
|
|
|
mpalen = sizeof(*mpa) + plen;
|
|
|
|
|
@@ -585,7 +586,7 @@ static int send_mpa_reply(struct iwch_ep *ep, const void *pdata, u8 plen)
|
|
|
int len;
|
|
|
struct sk_buff *skb;
|
|
|
|
|
|
- PDBG("%s ep %p plen %d\n", __func__, ep, plen);
|
|
|
+ pr_debug("%s ep %p plen %d\n", __func__, ep, plen);
|
|
|
|
|
|
mpalen = sizeof(*mpa) + plen;
|
|
|
|
|
@@ -634,7 +635,7 @@ static int act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
struct cpl_act_establish *req = cplhdr(skb);
|
|
|
unsigned int tid = GET_TID(req);
|
|
|
|
|
|
- PDBG("%s ep %p tid %d\n", __func__, ep, tid);
|
|
|
+ pr_debug("%s ep %p tid %d\n", __func__, ep, tid);
|
|
|
|
|
|
dst_confirm(ep->dst);
|
|
|
|
|
@@ -658,7 +659,7 @@ static int act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
|
|
|
static void abort_connection(struct iwch_ep *ep, struct sk_buff *skb, gfp_t gfp)
|
|
|
{
|
|
|
- PDBG("%s ep %p\n", __FILE__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __FILE__, ep);
|
|
|
state_set(&ep->com, ABORTING);
|
|
|
send_abort(ep, skb, gfp);
|
|
|
}
|
|
@@ -667,12 +668,12 @@ static void close_complete_upcall(struct iwch_ep *ep)
|
|
|
{
|
|
|
struct iw_cm_event event;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
memset(&event, 0, sizeof(event));
|
|
|
event.event = IW_CM_EVENT_CLOSE;
|
|
|
if (ep->com.cm_id) {
|
|
|
- PDBG("close complete delivered ep %p cm_id %p tid %d\n",
|
|
|
- ep, ep->com.cm_id, ep->hwtid);
|
|
|
+ pr_debug("close complete delivered ep %p cm_id %p tid %d\n",
|
|
|
+ ep, ep->com.cm_id, ep->hwtid);
|
|
|
ep->com.cm_id->event_handler(ep->com.cm_id, &event);
|
|
|
ep->com.cm_id->rem_ref(ep->com.cm_id);
|
|
|
ep->com.cm_id = NULL;
|
|
@@ -684,12 +685,12 @@ static void peer_close_upcall(struct iwch_ep *ep)
|
|
|
{
|
|
|
struct iw_cm_event event;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
memset(&event, 0, sizeof(event));
|
|
|
event.event = IW_CM_EVENT_DISCONNECT;
|
|
|
if (ep->com.cm_id) {
|
|
|
- PDBG("peer close delivered ep %p cm_id %p tid %d\n",
|
|
|
- ep, ep->com.cm_id, ep->hwtid);
|
|
|
+ pr_debug("peer close delivered ep %p cm_id %p tid %d\n",
|
|
|
+ ep, ep->com.cm_id, ep->hwtid);
|
|
|
ep->com.cm_id->event_handler(ep->com.cm_id, &event);
|
|
|
}
|
|
|
}
|
|
@@ -698,13 +699,13 @@ static void peer_abort_upcall(struct iwch_ep *ep)
|
|
|
{
|
|
|
struct iw_cm_event event;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
memset(&event, 0, sizeof(event));
|
|
|
event.event = IW_CM_EVENT_CLOSE;
|
|
|
event.status = -ECONNRESET;
|
|
|
if (ep->com.cm_id) {
|
|
|
- PDBG("abort delivered ep %p cm_id %p tid %d\n", ep,
|
|
|
- ep->com.cm_id, ep->hwtid);
|
|
|
+ pr_debug("abort delivered ep %p cm_id %p tid %d\n", ep,
|
|
|
+ ep->com.cm_id, ep->hwtid);
|
|
|
ep->com.cm_id->event_handler(ep->com.cm_id, &event);
|
|
|
ep->com.cm_id->rem_ref(ep->com.cm_id);
|
|
|
ep->com.cm_id = NULL;
|
|
@@ -716,7 +717,7 @@ static void connect_reply_upcall(struct iwch_ep *ep, int status)
|
|
|
{
|
|
|
struct iw_cm_event event;
|
|
|
|
|
|
- PDBG("%s ep %p status %d\n", __func__, ep, status);
|
|
|
+ pr_debug("%s ep %p status %d\n", __func__, ep, status);
|
|
|
memset(&event, 0, sizeof(event));
|
|
|
event.event = IW_CM_EVENT_CONNECT_REPLY;
|
|
|
event.status = status;
|
|
@@ -730,8 +731,8 @@ static void connect_reply_upcall(struct iwch_ep *ep, int status)
|
|
|
event.private_data = ep->mpa_pkt + sizeof(struct mpa_message);
|
|
|
}
|
|
|
if (ep->com.cm_id) {
|
|
|
- PDBG("%s ep %p tid %d status %d\n", __func__, ep,
|
|
|
- ep->hwtid, status);
|
|
|
+ pr_debug("%s ep %p tid %d status %d\n", __func__, ep,
|
|
|
+ ep->hwtid, status);
|
|
|
ep->com.cm_id->event_handler(ep->com.cm_id, &event);
|
|
|
}
|
|
|
if (status < 0) {
|
|
@@ -745,7 +746,7 @@ static void connect_request_upcall(struct iwch_ep *ep)
|
|
|
{
|
|
|
struct iw_cm_event event;
|
|
|
|
|
|
- PDBG("%s ep %p tid %d\n", __func__, ep, ep->hwtid);
|
|
|
+ pr_debug("%s ep %p tid %d\n", __func__, ep, ep->hwtid);
|
|
|
memset(&event, 0, sizeof(event));
|
|
|
event.event = IW_CM_EVENT_CONNECT_REQUEST;
|
|
|
memcpy(&event.local_addr, &ep->com.local_addr,
|
|
@@ -774,7 +775,7 @@ static void established_upcall(struct iwch_ep *ep)
|
|
|
{
|
|
|
struct iw_cm_event event;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
memset(&event, 0, sizeof(event));
|
|
|
event.event = IW_CM_EVENT_ESTABLISHED;
|
|
|
/*
|
|
@@ -783,7 +784,7 @@ static void established_upcall(struct iwch_ep *ep)
|
|
|
*/
|
|
|
event.ird = event.ord = 8;
|
|
|
if (ep->com.cm_id) {
|
|
|
- PDBG("%s ep %p tid %d\n", __func__, ep, ep->hwtid);
|
|
|
+ pr_debug("%s ep %p tid %d\n", __func__, ep, ep->hwtid);
|
|
|
ep->com.cm_id->event_handler(ep->com.cm_id, &event);
|
|
|
}
|
|
|
}
|
|
@@ -793,7 +794,7 @@ static int update_rx_credits(struct iwch_ep *ep, u32 credits)
|
|
|
struct cpl_rx_data_ack *req;
|
|
|
struct sk_buff *skb;
|
|
|
|
|
|
- PDBG("%s ep %p credits %u\n", __func__, ep, credits);
|
|
|
+ pr_debug("%s ep %p credits %u\n", __func__, ep, credits);
|
|
|
skb = get_skb(NULL, sizeof(*req), GFP_KERNEL);
|
|
|
if (!skb) {
|
|
|
pr_err("update_rx_credits - cannot alloc skb!\n");
|
|
@@ -817,7 +818,7 @@ static void process_mpa_reply(struct iwch_ep *ep, struct sk_buff *skb)
|
|
|
enum iwch_qp_attr_mask mask;
|
|
|
int err;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
|
|
|
/*
|
|
|
* Stop mpa timer. If it expired, then the state has
|
|
@@ -904,10 +905,10 @@ static void process_mpa_reply(struct iwch_ep *ep, struct sk_buff *skb)
|
|
|
ep->mpa_attr.recv_marker_enabled = markers_enabled;
|
|
|
ep->mpa_attr.xmit_marker_enabled = mpa->flags & MPA_MARKERS ? 1 : 0;
|
|
|
ep->mpa_attr.version = mpa_rev;
|
|
|
- PDBG("%s - crc_enabled=%d, recv_marker_enabled=%d, "
|
|
|
- "xmit_marker_enabled=%d, version=%d\n", __func__,
|
|
|
- ep->mpa_attr.crc_enabled, ep->mpa_attr.recv_marker_enabled,
|
|
|
- ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version);
|
|
|
+ pr_debug("%s - crc_enabled=%d, recv_marker_enabled=%d, xmit_marker_enabled=%d, version=%d\n",
|
|
|
+ __func__,
|
|
|
+ ep->mpa_attr.crc_enabled, ep->mpa_attr.recv_marker_enabled,
|
|
|
+ ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version);
|
|
|
|
|
|
attrs.mpa_attr = ep->mpa_attr;
|
|
|
attrs.max_ird = ep->ird;
|
|
@@ -942,7 +943,7 @@ static void process_mpa_request(struct iwch_ep *ep, struct sk_buff *skb)
|
|
|
struct mpa_message *mpa;
|
|
|
u16 plen;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
|
|
|
/*
|
|
|
* Stop mpa timer. If it expired, then the state has
|
|
@@ -962,7 +963,7 @@ static void process_mpa_request(struct iwch_ep *ep, struct sk_buff *skb)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- PDBG("%s enter (%s line %u)\n", __func__, __FILE__, __LINE__);
|
|
|
+ pr_debug("%s enter (%s line %u)\n", __func__, __FILE__, __LINE__);
|
|
|
|
|
|
/*
|
|
|
* Copy the new data into our accumulation buffer.
|
|
@@ -977,7 +978,7 @@ static void process_mpa_request(struct iwch_ep *ep, struct sk_buff *skb)
|
|
|
*/
|
|
|
if (ep->mpa_pkt_len < sizeof(*mpa))
|
|
|
return;
|
|
|
- PDBG("%s enter (%s line %u)\n", __func__, __FILE__, __LINE__);
|
|
|
+ pr_debug("%s enter (%s line %u)\n", __func__, __FILE__, __LINE__);
|
|
|
mpa = (struct mpa_message *) ep->mpa_pkt;
|
|
|
|
|
|
/*
|
|
@@ -1027,10 +1028,10 @@ static void process_mpa_request(struct iwch_ep *ep, struct sk_buff *skb)
|
|
|
ep->mpa_attr.recv_marker_enabled = markers_enabled;
|
|
|
ep->mpa_attr.xmit_marker_enabled = mpa->flags & MPA_MARKERS ? 1 : 0;
|
|
|
ep->mpa_attr.version = mpa_rev;
|
|
|
- PDBG("%s - crc_enabled=%d, recv_marker_enabled=%d, "
|
|
|
- "xmit_marker_enabled=%d, version=%d\n", __func__,
|
|
|
- ep->mpa_attr.crc_enabled, ep->mpa_attr.recv_marker_enabled,
|
|
|
- ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version);
|
|
|
+ pr_debug("%s - crc_enabled=%d, recv_marker_enabled=%d, xmit_marker_enabled=%d, version=%d\n",
|
|
|
+ __func__,
|
|
|
+ ep->mpa_attr.crc_enabled, ep->mpa_attr.recv_marker_enabled,
|
|
|
+ ep->mpa_attr.xmit_marker_enabled, ep->mpa_attr.version);
|
|
|
|
|
|
state_set(&ep->com, MPA_REQ_RCVD);
|
|
|
|
|
@@ -1045,7 +1046,7 @@ static int rx_data(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
struct cpl_rx_data *hdr = cplhdr(skb);
|
|
|
unsigned int dlen = ntohs(hdr->len);
|
|
|
|
|
|
- PDBG("%s ep %p dlen %u\n", __func__, ep, dlen);
|
|
|
+ pr_debug("%s ep %p dlen %u\n", __func__, ep, dlen);
|
|
|
|
|
|
skb_pull(skb, sizeof(*hdr));
|
|
|
skb_trim(skb, dlen);
|
|
@@ -1092,11 +1093,11 @@ static int tx_ack(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
unsigned long flags;
|
|
|
int post_zb = 0;
|
|
|
|
|
|
- PDBG("%s ep %p credits %u\n", __func__, ep, credits);
|
|
|
+ pr_debug("%s ep %p credits %u\n", __func__, ep, credits);
|
|
|
|
|
|
if (credits == 0) {
|
|
|
- PDBG("%s 0 credit ack ep %p state %u\n",
|
|
|
- __func__, ep, state_read(&ep->com));
|
|
|
+ pr_debug("%s 0 credit ack ep %p state %u\n",
|
|
|
+ __func__, ep, state_read(&ep->com));
|
|
|
return CPL_RET_BUF_DONE;
|
|
|
}
|
|
|
|
|
@@ -1104,24 +1105,24 @@ static int tx_ack(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
BUG_ON(credits != 1);
|
|
|
dst_confirm(ep->dst);
|
|
|
if (!ep->mpa_skb) {
|
|
|
- PDBG("%s rdma_init wr_ack ep %p state %u\n",
|
|
|
- __func__, ep, ep->com.state);
|
|
|
+ pr_debug("%s rdma_init wr_ack ep %p state %u\n",
|
|
|
+ __func__, ep, ep->com.state);
|
|
|
if (ep->mpa_attr.initiator) {
|
|
|
- PDBG("%s initiator ep %p state %u\n",
|
|
|
- __func__, ep, ep->com.state);
|
|
|
+ pr_debug("%s initiator ep %p state %u\n",
|
|
|
+ __func__, ep, ep->com.state);
|
|
|
if (peer2peer && ep->com.state == FPDU_MODE)
|
|
|
post_zb = 1;
|
|
|
} else {
|
|
|
- PDBG("%s responder ep %p state %u\n",
|
|
|
- __func__, ep, ep->com.state);
|
|
|
+ pr_debug("%s responder ep %p state %u\n",
|
|
|
+ __func__, ep, ep->com.state);
|
|
|
if (ep->com.state == MPA_REQ_RCVD) {
|
|
|
ep->com.rpl_done = 1;
|
|
|
wake_up(&ep->com.waitq);
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- PDBG("%s lsm ack ep %p state %u freeing skb\n",
|
|
|
- __func__, ep, ep->com.state);
|
|
|
+ pr_debug("%s lsm ack ep %p state %u freeing skb\n",
|
|
|
+ __func__, ep, ep->com.state);
|
|
|
kfree_skb(ep->mpa_skb);
|
|
|
ep->mpa_skb = NULL;
|
|
|
}
|
|
@@ -1137,7 +1138,7 @@ static int abort_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
unsigned long flags;
|
|
|
int release = 0;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
BUG_ON(!ep);
|
|
|
|
|
|
/*
|
|
@@ -1180,8 +1181,8 @@ static int act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
struct iwch_ep *ep = ctx;
|
|
|
struct cpl_act_open_rpl *rpl = cplhdr(skb);
|
|
|
|
|
|
- PDBG("%s ep %p status %u errno %d\n", __func__, ep, rpl->status,
|
|
|
- status2errno(rpl->status));
|
|
|
+ pr_debug("%s ep %p status %u errno %d\n", __func__, ep, rpl->status,
|
|
|
+ status2errno(rpl->status));
|
|
|
connect_reply_upcall(ep, status2errno(rpl->status));
|
|
|
state_set(&ep->com, DEAD);
|
|
|
if (ep->com.tdev->type != T3A && act_open_has_tid(rpl->status))
|
|
@@ -1198,7 +1199,7 @@ static int listen_start(struct iwch_listen_ep *ep)
|
|
|
struct sk_buff *skb;
|
|
|
struct cpl_pass_open_req *req;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
skb = get_skb(NULL, sizeof(*req), GFP_KERNEL);
|
|
|
if (!skb) {
|
|
|
pr_err("t3c_listen_start failed to alloc skb!\n");
|
|
@@ -1226,8 +1227,8 @@ static int pass_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
struct iwch_listen_ep *ep = ctx;
|
|
|
struct cpl_pass_open_rpl *rpl = cplhdr(skb);
|
|
|
|
|
|
- PDBG("%s ep %p status %d error %d\n", __func__, ep,
|
|
|
- rpl->status, status2errno(rpl->status));
|
|
|
+ pr_debug("%s ep %p status %d error %d\n", __func__, ep,
|
|
|
+ rpl->status, status2errno(rpl->status));
|
|
|
ep->com.rpl_err = status2errno(rpl->status);
|
|
|
ep->com.rpl_done = 1;
|
|
|
wake_up(&ep->com.waitq);
|
|
@@ -1240,7 +1241,7 @@ static int listen_stop(struct iwch_listen_ep *ep)
|
|
|
struct sk_buff *skb;
|
|
|
struct cpl_close_listserv_req *req;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
skb = get_skb(NULL, sizeof(*req), GFP_KERNEL);
|
|
|
if (!skb) {
|
|
|
pr_err("%s - failed to alloc skb\n", __func__);
|
|
@@ -1260,7 +1261,7 @@ static int close_listsrv_rpl(struct t3cdev *tdev, struct sk_buff *skb,
|
|
|
struct iwch_listen_ep *ep = ctx;
|
|
|
struct cpl_close_listserv_rpl *rpl = cplhdr(skb);
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
ep->com.rpl_err = status2errno(rpl->status);
|
|
|
ep->com.rpl_done = 1;
|
|
|
wake_up(&ep->com.waitq);
|
|
@@ -1274,7 +1275,7 @@ static void accept_cr(struct iwch_ep *ep, __be32 peer_ip, struct sk_buff *skb)
|
|
|
u32 opt0h, opt0l, opt2;
|
|
|
int wscale;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
BUG_ON(skb_cloned(skb));
|
|
|
skb_trim(skb, sizeof(*rpl));
|
|
|
skb_get(skb);
|
|
@@ -1308,8 +1309,8 @@ static void accept_cr(struct iwch_ep *ep, __be32 peer_ip, struct sk_buff *skb)
|
|
|
static void reject_cr(struct t3cdev *tdev, u32 hwtid, __be32 peer_ip,
|
|
|
struct sk_buff *skb)
|
|
|
{
|
|
|
- PDBG("%s t3cdev %p tid %u peer_ip %x\n", __func__, tdev, hwtid,
|
|
|
- peer_ip);
|
|
|
+ pr_debug("%s t3cdev %p tid %u peer_ip %x\n", __func__, tdev, hwtid,
|
|
|
+ peer_ip);
|
|
|
BUG_ON(skb_cloned(skb));
|
|
|
skb_trim(skb, sizeof(struct cpl_tid_release));
|
|
|
skb_get(skb);
|
|
@@ -1343,7 +1344,7 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
struct rtable *rt;
|
|
|
struct iff_mac tim;
|
|
|
|
|
|
- PDBG("%s parent ep %p tid %u\n", __func__, parent_ep, hwtid);
|
|
|
+ pr_debug("%s parent ep %p tid %u\n", __func__, parent_ep, hwtid);
|
|
|
|
|
|
if (state_read(&parent_ep->com) != LISTEN) {
|
|
|
pr_err("%s - listening ep not in LISTEN\n", __func__);
|
|
@@ -1414,7 +1415,7 @@ static int pass_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
struct iwch_ep *ep = ctx;
|
|
|
struct cpl_pass_establish *req = cplhdr(skb);
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
ep->snd_seq = ntohl(req->snd_isn);
|
|
|
ep->rcv_seq = ntohl(req->rcv_isn);
|
|
|
|
|
@@ -1435,7 +1436,7 @@ static int peer_close(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
int disconnect = 1;
|
|
|
int release = 0;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
dst_confirm(ep->dst);
|
|
|
|
|
|
spin_lock_irqsave(&ep->com.lock, flags);
|
|
@@ -1458,14 +1459,14 @@ static int peer_close(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
__state_set(&ep->com, CLOSING);
|
|
|
ep->com.rpl_done = 1;
|
|
|
ep->com.rpl_err = -ECONNRESET;
|
|
|
- PDBG("waking up ep %p\n", ep);
|
|
|
+ pr_debug("waking up ep %p\n", ep);
|
|
|
wake_up(&ep->com.waitq);
|
|
|
break;
|
|
|
case MPA_REP_SENT:
|
|
|
__state_set(&ep->com, CLOSING);
|
|
|
ep->com.rpl_done = 1;
|
|
|
ep->com.rpl_err = -ECONNRESET;
|
|
|
- PDBG("waking up ep %p\n", ep);
|
|
|
+ pr_debug("waking up ep %p\n", ep);
|
|
|
wake_up(&ep->com.waitq);
|
|
|
break;
|
|
|
case FPDU_MODE:
|
|
@@ -1530,8 +1531,8 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
unsigned long flags;
|
|
|
|
|
|
if (is_neg_adv_abort(req->status)) {
|
|
|
- PDBG("%s neg_adv_abort ep %p tid %d\n", __func__, ep,
|
|
|
- ep->hwtid);
|
|
|
+ pr_debug("%s neg_adv_abort ep %p tid %d\n", __func__, ep,
|
|
|
+ ep->hwtid);
|
|
|
t3_l2t_send_event(ep->com.tdev, ep->l2t);
|
|
|
return CPL_RET_BUF_DONE;
|
|
|
}
|
|
@@ -1545,7 +1546,7 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
}
|
|
|
|
|
|
spin_lock_irqsave(&ep->com.lock, flags);
|
|
|
- PDBG("%s ep %p state %u\n", __func__, ep, ep->com.state);
|
|
|
+ pr_debug("%s ep %p state %u\n", __func__, ep, ep->com.state);
|
|
|
switch (ep->com.state) {
|
|
|
case CONNECTING:
|
|
|
break;
|
|
@@ -1559,7 +1560,7 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
case MPA_REP_SENT:
|
|
|
ep->com.rpl_done = 1;
|
|
|
ep->com.rpl_err = -ECONNRESET;
|
|
|
- PDBG("waking up ep %p\n", ep);
|
|
|
+ pr_debug("waking up ep %p\n", ep);
|
|
|
wake_up(&ep->com.waitq);
|
|
|
break;
|
|
|
case MPA_REQ_RCVD:
|
|
@@ -1572,7 +1573,7 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
*/
|
|
|
ep->com.rpl_done = 1;
|
|
|
ep->com.rpl_err = -ECONNRESET;
|
|
|
- PDBG("waking up ep %p\n", ep);
|
|
|
+ pr_debug("waking up ep %p\n", ep);
|
|
|
wake_up(&ep->com.waitq);
|
|
|
break;
|
|
|
case MORIBUND:
|
|
@@ -1593,7 +1594,7 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
case ABORTING:
|
|
|
break;
|
|
|
case DEAD:
|
|
|
- PDBG("%s PEER_ABORT IN DEAD STATE!!!!\n", __func__);
|
|
|
+ pr_debug("%s PEER_ABORT IN DEAD STATE!!!!\n", __func__);
|
|
|
spin_unlock_irqrestore(&ep->com.lock, flags);
|
|
|
return CPL_RET_BUF_DONE;
|
|
|
default:
|
|
@@ -1633,7 +1634,7 @@ static int close_con_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
unsigned long flags;
|
|
|
int release = 0;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
BUG_ON(!ep);
|
|
|
|
|
|
/* The cm_id may be null if we failed to connect */
|
|
@@ -1687,9 +1688,9 @@ static int terminate(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
if (state_read(&ep->com) != FPDU_MODE)
|
|
|
return CPL_RET_BUF_DONE;
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
skb_pull(skb, sizeof(struct cpl_rdma_terminate));
|
|
|
- PDBG("%s saving %d bytes of term msg\n", __func__, skb->len);
|
|
|
+ pr_debug("%s saving %d bytes of term msg\n", __func__, skb->len);
|
|
|
skb_copy_from_linear_data(skb, ep->com.qp->attr.terminate_buffer,
|
|
|
skb->len);
|
|
|
ep->com.qp->attr.terminate_msg_len = skb->len;
|
|
@@ -1702,8 +1703,8 @@ static int ec_status(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
|
|
|
struct cpl_rdma_ec_status *rep = cplhdr(skb);
|
|
|
struct iwch_ep *ep = ctx;
|
|
|
|
|
|
- PDBG("%s ep %p tid %u status %d\n", __func__, ep, ep->hwtid,
|
|
|
- rep->status);
|
|
|
+ pr_debug("%s ep %p tid %u status %d\n", __func__, ep, ep->hwtid,
|
|
|
+ rep->status);
|
|
|
if (rep->status) {
|
|
|
struct iwch_qp_attributes attrs;
|
|
|
|
|
@@ -1727,8 +1728,8 @@ static void ep_timeout(unsigned long arg)
|
|
|
int abort = 1;
|
|
|
|
|
|
spin_lock_irqsave(&ep->com.lock, flags);
|
|
|
- PDBG("%s ep %p tid %u state %d\n", __func__, ep, ep->hwtid,
|
|
|
- ep->com.state);
|
|
|
+ pr_debug("%s ep %p tid %u state %d\n", __func__, ep, ep->hwtid,
|
|
|
+ ep->com.state);
|
|
|
switch (ep->com.state) {
|
|
|
case MPA_REQ_SENT:
|
|
|
__state_set(&ep->com, ABORTING);
|
|
@@ -1762,7 +1763,7 @@ int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
|
|
|
{
|
|
|
int err;
|
|
|
struct iwch_ep *ep = to_ep(cm_id);
|
|
|
- PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
|
|
|
+ pr_debug("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
|
|
|
|
|
|
if (state_read(&ep->com) == DEAD) {
|
|
|
put_ep(&ep->com);
|
|
@@ -1788,7 +1789,7 @@ int iwch_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
|
|
|
struct iwch_dev *h = to_iwch_dev(cm_id->device);
|
|
|
struct iwch_qp *qp = get_qhp(h, conn_param->qpn);
|
|
|
|
|
|
- PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
|
|
|
+ pr_debug("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
|
|
|
if (state_read(&ep->com) == DEAD) {
|
|
|
err = -ECONNRESET;
|
|
|
goto err;
|
|
@@ -1814,7 +1815,7 @@ int iwch_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
|
|
|
if (peer2peer && ep->ird == 0)
|
|
|
ep->ird = 1;
|
|
|
|
|
|
- PDBG("%s %d ird %d ord %d\n", __func__, __LINE__, ep->ird, ep->ord);
|
|
|
+ pr_debug("%s %d ird %d ord %d\n", __func__, __LINE__, ep->ird, ep->ord);
|
|
|
|
|
|
/* bind QP to EP and move to RTS */
|
|
|
attrs.mpa_attr = ep->mpa_attr;
|
|
@@ -1916,8 +1917,8 @@ int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
|
|
|
ep->com.cm_id = cm_id;
|
|
|
ep->com.qp = get_qhp(h, conn_param->qpn);
|
|
|
BUG_ON(!ep->com.qp);
|
|
|
- PDBG("%s qpn 0x%x qp %p cm_id %p\n", __func__, conn_param->qpn,
|
|
|
- ep->com.qp, cm_id);
|
|
|
+ pr_debug("%s qpn 0x%x qp %p cm_id %p\n", __func__, conn_param->qpn,
|
|
|
+ ep->com.qp, cm_id);
|
|
|
|
|
|
/*
|
|
|
* Allocate an active TID to initiate a TCP connection.
|
|
@@ -1991,7 +1992,7 @@ int iwch_create_listen(struct iw_cm_id *cm_id, int backlog)
|
|
|
err = -ENOMEM;
|
|
|
goto fail1;
|
|
|
}
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
ep->com.tdev = h->rdev.t3cdev_p;
|
|
|
cm_id->add_ref(cm_id);
|
|
|
ep->com.cm_id = cm_id;
|
|
@@ -2036,7 +2037,7 @@ int iwch_destroy_listen(struct iw_cm_id *cm_id)
|
|
|
int err;
|
|
|
struct iwch_listen_ep *ep = to_listen_ep(cm_id);
|
|
|
|
|
|
- PDBG("%s ep %p\n", __func__, ep);
|
|
|
+ pr_debug("%s ep %p\n", __func__, ep);
|
|
|
|
|
|
might_sleep();
|
|
|
state_set(&ep->com, DEAD);
|
|
@@ -2065,8 +2066,8 @@ int iwch_ep_disconnect(struct iwch_ep *ep, int abrupt, gfp_t gfp)
|
|
|
|
|
|
spin_lock_irqsave(&ep->com.lock, flags);
|
|
|
|
|
|
- PDBG("%s ep %p state %s, abrupt %d\n", __func__, ep,
|
|
|
- states[ep->com.state], abrupt);
|
|
|
+ pr_debug("%s ep %p state %s, abrupt %d\n", __func__, ep,
|
|
|
+ states[ep->com.state], abrupt);
|
|
|
|
|
|
tdev = (struct t3cdev *)ep->com.tdev;
|
|
|
rdev = (struct cxio_rdev *)tdev->ulp;
|
|
@@ -2103,8 +2104,8 @@ int iwch_ep_disconnect(struct iwch_ep *ep, int abrupt, gfp_t gfp)
|
|
|
case MORIBUND:
|
|
|
case ABORTING:
|
|
|
case DEAD:
|
|
|
- PDBG("%s ignoring disconnect ep %p state %u\n",
|
|
|
- __func__, ep, ep->com.state);
|
|
|
+ pr_debug("%s ignoring disconnect ep %p state %u\n",
|
|
|
+ __func__, ep, ep->com.state);
|
|
|
break;
|
|
|
default:
|
|
|
BUG();
|
|
@@ -2133,8 +2134,8 @@ int iwch_ep_redirect(void *ctx, struct dst_entry *old, struct dst_entry *new,
|
|
|
if (ep->dst != old)
|
|
|
return 0;
|
|
|
|
|
|
- PDBG("%s ep %p redirect to dst %p l2t %p\n", __func__, ep, new,
|
|
|
- l2t);
|
|
|
+ pr_debug("%s ep %p redirect to dst %p l2t %p\n", __func__, ep, new,
|
|
|
+ l2t);
|
|
|
dst_hold(new);
|
|
|
l2t_release(ep->com.tdev, ep->l2t);
|
|
|
ep->l2t = l2t;
|