Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/stand/altboot When we stretch a short fra...
details: https://anonhg.NetBSD.org/src/rev/8cc94b087a33
branches: trunk
changeset: 764661:8cc94b087a33
user: phx <phx%NetBSD.org@localhost>
date: Fri Apr 29 22:21:36 2011 +0000
description:
When we stretch a short frame to 60 bytes in rge_send() do not return 60,
but the original frame size.
diffstat:
sys/arch/sandpoint/stand/altboot/rge.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r c3f5c5b153ac -r 8cc94b087a33 sys/arch/sandpoint/stand/altboot/rge.c
--- a/sys/arch/sandpoint/stand/altboot/rge.c Fri Apr 29 22:19:30 2011 +0000
+++ b/sys/arch/sandpoint/stand/altboot/rge.c Fri Apr 29 22:21:36 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rge.c,v 1.4 2011/04/04 16:41:34 phx Exp $ */
+/* $NetBSD: rge.c,v 1.5 2011/04/29 22:21:36 phx Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -217,8 +217,9 @@
{
struct local *l = dev;
volatile struct desc *txd;
- unsigned loop;
+ unsigned loop, ret;
+ ret = len;
if (len < 60) {
memset(buf + len, 0, 60 - len);
len = 60; /* RTL does not stretch <60 Tx frame */
@@ -241,7 +242,7 @@
return -1;
done:
l->tx ^= 1;
- return len;
+ return ret;
}
int
Home |
Main Index |
Thread Index |
Old Index