Skip to content

Commit 1cff389

Browse files
amoskongdavem330
authored andcommitted
mvme147: fix ram size in comment
The order of ram pages is 3, so the ram size is 2^3 * 4K = 32K. Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 59ae9fc commit 1cff389

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/net/ethernet/amd/mvme147.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
#include <asm/pgtable.h>
2727
#include <asm/mvme147hw.h>
2828

29-
/* We have 16834 bytes of RAM for the init block and buffers. This places
29+
/* We have 32K of RAM for the init block and buffers. This places
3030
* an upper limit on the number of buffers we can use. NetBSD uses 8 Rx
31-
* buffers and 2 Tx buffers.
31+
* buffers and 2 Tx buffers, it takes (8 + 2) * 1544 bytes.
3232
*/
3333
#define LANCE_LOG_TX_BUFFERS 1
3434
#define LANCE_LOG_RX_BUFFERS 3
@@ -111,7 +111,7 @@ struct net_device * __init mvme147lance_probe(int unit)
111111
dev->dev_addr);
112112

113113
lp = netdev_priv(dev);
114-
lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */
114+
lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */
115115
if (!lp->ram) {
116116
printk("%s: No memory for LANCE buffers\n", dev->name);
117117
free_netdev(dev);

0 commit comments

Comments
 (0)