kern/123961: Allow vr interface to handle vlans

Pete Carah pete at altadena.net
Sat May 24 17:20:06 UTC 2008


>Number:         123961
>Category:       kern
>Synopsis:       Allow vr interface to handle vlans
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 24 17:20:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pete Carah
>Release:        FreeBSD 6.3-RELEASE-p1 i386
>Organization:
Altadena Internet, Cerona Networks
>Environment:
System: FreeBSD office.cerona.com 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #1: Sat Feb 23 09:30:53 EST 2008 pete at ns3.altadena.net:/usr/obj/usr/src/sys/SOEKRIS55 i386
	Soekris 5500, i386 (geode lx)

Description: VR interface doesn't handle vlans; this makes it work.
	Note that this already works in linux>2.6.19, don't know about earlier
How-To-Repeat: Try configure a vlan, this works but then traffic fails later;
	Actually crashes the system under some (unknown) circumstances.

Fix:	Very simple patch enclosed
	(tested; I'm sending from the running system with lots of vlans):

=======================================================
--- sys/pci/if_vrreg.h.orig	2008-02-23 23:19:40.000000000 -0500
+++ sys/pci/if_vrreg.h	2008-02-23 23:21:46.000000000 -0500
@@ -401,7 +401,7 @@
 #define VR_TX_LIST_CNT		256
 #define VR_MIN_FRAMELEN		60
 #define VR_FRAMELEN		1536
-#define VR_RXLEN		1524
+#define VR_RXLEN		(MCLBYTES-1)
 
 struct vr_mii_frame {
 	u_int8_t		mii_stdelim;
=============================================================

>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list