diff options
author | Thomas Klein <osstklei@de.ibm.com> | 2007-11-21 11:42:27 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-11-23 22:09:01 -0500 |
commit | 58dd8258fccbb68e0d0e1898038442822cb833c0 (patch) | |
tree | e187a8c2b576e23d8eb0fbfb3693e17ff7104fd7 /drivers/net/ehea/ehea_main.c | |
parent | 7393b87c9a538045c241d3eb5e2abf37e25ca3d3 (diff) |
ehea: Reworked rcv queue handling to log only fatal errors
Prevent driver from brawly logging packet checksum errors.
Signed-off-by: Thomas Klein <tklein@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index d2f715d80077..869e1604b16e 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c | |||
@@ -410,11 +410,6 @@ static int ehea_treat_poll_error(struct ehea_port_res *pr, int rq, | |||
410 | if (cqe->status & EHEA_CQE_STAT_ERR_CRC) | 410 | if (cqe->status & EHEA_CQE_STAT_ERR_CRC) |
411 | pr->p_stats.err_frame_crc++; | 411 | pr->p_stats.err_frame_crc++; |
412 | 412 | ||
413 | if (netif_msg_rx_err(pr->port)) { | ||
414 | ehea_error("CQE Error for QP %d", pr->qp->init_attr.qp_nr); | ||
415 | ehea_dump(cqe, sizeof(*cqe), "CQE"); | ||
416 | } | ||
417 | |||
418 | if (rq == 2) { | 413 | if (rq == 2) { |
419 | *processed_rq2 += 1; | 414 | *processed_rq2 += 1; |
420 | skb = get_skb_by_index(pr->rq2_skba.arr, pr->rq2_skba.len, cqe); | 415 | skb = get_skb_by_index(pr->rq2_skba.arr, pr->rq2_skba.len, cqe); |
@@ -426,7 +421,11 @@ static int ehea_treat_poll_error(struct ehea_port_res *pr, int rq, | |||
426 | } | 421 | } |
427 | 422 | ||
428 | if (cqe->status & EHEA_CQE_STAT_FAT_ERR_MASK) { | 423 | if (cqe->status & EHEA_CQE_STAT_FAT_ERR_MASK) { |
429 | ehea_error("Critical receive error. Resetting port."); | 424 | if (netif_msg_rx_err(pr->port)) { |
425 | ehea_error("Critical receive error for QP %d. " | ||
426 | "Resetting port.", pr->qp->init_attr.qp_nr); | ||
427 | ehea_dump(cqe, sizeof(*cqe), "CQE"); | ||
428 | } | ||
430 | schedule_work(&pr->port->reset_task); | 429 | schedule_work(&pr->port->reset_task); |
431 | return 1; | 430 | return 1; |
432 | } | 431 | } |