[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1266424883-25927-2-git-send-email-ron.mercer@qlogic.com>
Date: Wed, 17 Feb 2010 08:41:21 -0800
From: Ron Mercer <ron.mercer@...gic.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, ron.mercer@...gic.com
Subject: [net-next PATCH 1/3] qlge: Fix dropping of large non-TCP/UDP frames.
This was found with pings that were large enough to span multiple rx
buffers. The split frame logic handles this case nicely.
Signed-off-by: Ron Mercer <ron.mercer@...gic.com>
---
drivers/net/qlge/qlge_main.c | 20 +++++---------------
1 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 2c052ca..0541e77 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -2066,21 +2066,11 @@ static unsigned long ql_process_mac_rx_intr(struct ql_adapter *qdev,
ql_process_mac_rx_page(qdev, rx_ring, ib_mac_rsp,
length, vlan_id);
} else {
- struct bq_desc *lbq_desc;
-
- /* Free small buffer that holds the IAL */
- lbq_desc = ql_get_curr_sbuf(rx_ring);
- netif_err(qdev, rx_err, qdev->ndev,
- "Dropping frame, len %d > mtu %d\n",
- length, qdev->ndev->mtu);
-
- /* Unwind the large buffers for this frame. */
- while (length > 0) {
- lbq_desc = ql_get_curr_lchunk(qdev, rx_ring);
- length -= (length < rx_ring->lbq_buf_size) ?
- length : rx_ring->lbq_buf_size;
- put_page(lbq_desc->p.pg_chunk.page);
- }
+ /* Non-TCP/UDP large frames that span multiple buffers
+ * can be processed corrrectly by the split frame logic.
+ */
+ ql_process_mac_split_rx_intr(qdev, rx_ring, ib_mac_rsp,
+ vlan_id);
}
return (unsigned long)length;
--
1.6.0.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists