Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 19 Sep 2002 20:13:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 19 Sep 2002 20:13:47 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:55566 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id ; Thu, 19 Sep 2002 20:13:46 -0400 Message-ID: <3D8A6948.5020606@mandrakesoft.com> Date: Thu, 19 Sep 2002 20:18:16 -0400 From: Jeff Garzik Organization: MandrakeSoft User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: netdev@oss.sgi.com, Linux Kernel Mailing List CC: Donald Becker , Jason Lunz , Richard Gooch , "Patrick R. McManus" , edward_peng@dlink.com.tw Subject: PATCH: sundance #6 References: <3D8A25D1.3060300@mandrakesoft.com> <3D8A433B.5010703@mandrakesoft.com> Content-Type: multipart/mixed; boundary="------------070102080708090909020508" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 42 This is a multi-part message in MIME format. --------------070102080708090909020508 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit The obvious sundance update from the earlier discussion... --------------070102080708090909020508 Content-Type: text/plain; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch" 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++) { --------------070102080708090909020508-- - 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/