PATCH: sundance #6

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Thu Sep 19 2002 - 19:18:16 EST


The obvious sundance update from the earlier discussion...

diff -Nru a/drivers/net/sundance.c b/drivers/net/sundance.c
--- a/drivers/net/sundance.c Thu Sep 19 20:16:23 2002
+++ b/drivers/net/sundance.c Thu Sep 19 20:16:23 2002
@@ -60,6 +60,7 @@
                 * default to PIO, to fix chip bugs
         - Add missing unregister_netdev (Jason Lunz)
         - Add CONFIG_SUNDANCE_MMIO config option (jgarzik)
+ - Better rx buf size calculation (Donald Becker)
 
 */
 
@@ -973,7 +974,7 @@
         np->cur_rx = np->cur_tx = 0;
         np->dirty_rx = np->dirty_tx = 0;
 
- np->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 36);
+ np->rx_buf_sz = (dev->mtu <= 1520 ? PKT_BUF_SZ : dev->mtu + 16);
 
         /* Initialize all Rx descriptors. */
         for (i = 0; i < RX_RING_SIZE; i++) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:28 EST