From owner-FreeBSD-tech-jp@jp.freebsd.org  Wed Oct  1 11:03:17 1997
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta7/8.7.3) id LAA01398
	Wed, 1 Oct 1997 11:03:17 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta7/8.7.3) with SMTP id LAA01321
	for <FreeBSD-tech-jp@jp.freebsd.org>; Wed, 1 Oct 1997 11:03:13 +0900 (JST)
Received: from amont.astec.co.jp (amont.astec.co.jp [172.20.10.1]) by tokyonet-entrance.astec.co.jp (8.6.12+2.5Wb7/3.4Wbeta5-astecMX2.3) with ESMTP id LAA24104 for <FreeBSD-tech-jp@jp.freebsd.org>; Wed, 1 Oct 1997 11:03:11 +0900
Received: from stone.astec.co.jp (stone.astec.co.jp [172.20.10.23])
	by amont.astec.co.jp (8.7.6/3.6Wbeta5-astecMX2.4) with ESMTP id LAA28162
	for <FreeBSD-tech-jp@jp.freebsd.org>; Wed, 1 Oct 1997 11:03:08 +0900 (JST)
Received: (from hamada@localhost) by stone.astec.co.jp (8.8.5/3.5W-solaris1-1.2) id LAA08532; Wed, 1 Oct 1997 11:03:01 +0900 (JST)
Date: Wed, 1 Oct 1997 11:03:01 +0900 (JST)
Message-Id: <199710010203.LAA08532@stone.astec.co.jp>
From: HAMADA Naoki <hamada@astec.co.jp>
References: <14644.875592795@coconut.itojun.org>
To: FreeBSD-tech-jp@jp.freebsd.org
In-reply-to: itojun@itojun.org's message of "Tue, 30 Sep 1997 13:13:15 +0900"
	<14644.875592795@coconut.itojun.org>
Reply-To: FreeBSD-tech-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=20]
X-Sequence: FreeBSD-tech-jp 677
Subject: [FreeBSD-tech-jp 677] Re: odd ether drivers...
Errors-To: owner-FreeBSD-tech-jp@jp.freebsd.org
Sender: owner-FreeBSD-tech-jp@jp.freebsd.org

>	vx$B$K$D$$$F$O$A$g$C$H$7$?(Bsimplification$B$,(Bsend-pr$B$7$F$"$C$F!"(Bmerge
>	$B$9$k$N$bKM$NG$L3$J$N$G$9$,!"$3$$$D$O!V(B1500bytes$B$h$j$G$+$$%Q%1%C%H$,(B
>	$B$-$?$H$-$b<u?.$G$-$k!W$N$@$=$&$G!"$=$N$H$-$N5sF0$K$D$$$F3NG'$7$F(B
>	$B$J$$$s$G(Bpending$B$7$F$^$9!#(B

  $BK\Mh0U?^$7$F$?$O$:$N%3!<%I$O$3$s$J46$8$G$9$+$M!#$3$l$@$H!"8EE5E*$J(B 
mbuf chain $B$rEG$$$F$/$l$^$9!#(B

  ep $B%I%i%$%P$N$[$&$O$?$a$7$F$_$?$i!"0F$NDj!":G=i$,%G!<%?D9(B 98 $B$G$"$H(B
$B$K(B 108 $B$,==?t8D$>$m$>$mJB$VIB5$$J(B mbuf chain $B$r$?$^$K@8@.$7$^$9!#(B

$BIMED(B $BD><y(B

--- if_vx.c-	Wed Oct  1 07:37:56 1997
+++ if_vx.c	Wed Oct  1 07:43:31 1997
@@ -880,12 +880,13 @@
         }
         len = min(totlen, len);
         if (len > 3) {
-            len &= ~3;
             insl(BASE + VX_W1_RX_PIO_RD_1, mtod(m, u_int32_t *),
                 len / 4);
-        } else
-            insb(BASE + VX_W1_RX_PIO_RD_1, mtod(m, u_int8_t *),
-                len);
+        }
+        if (len & 3) {
+            insb(BASE + VX_W1_RX_PIO_RD_1, mtod(m, u_int8_t *) + (len & (~3)),
+                len & 3);
+	}
         m->m_len = len;
         totlen -= len;
         *mp = m;
