Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 2008 12:57:25 -0400 (EDT)
From:      Pete Carah <pete@altadena.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/123961: Allow vr interface to handle vlans
Message-ID:  <200805241657.m4OGvPS1063767@office.cerona.com>
Resent-Message-ID: <200805241720.m4OHK637011735@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805241657.m4OGvPS1063767>