From owner-freebsd-current@FreeBSD.ORG Sun Jun 5 18:06:18 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B56C316A41C; Sun, 5 Jun 2005 18:06:18 +0000 (GMT) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [194.58.105.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AEA543D49; Sun, 5 Jun 2005 18:06:18 +0000 (GMT) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.44 (FreeBSD)) id 1DezVo-0007vM-Pf; Sun, 05 Jun 2005 22:06:16 +0400 Date: Sun, 5 Jun 2005 22:06:16 +0400 From: Slawa Olhovchenkov To: freebsd-current@freebsd.org Message-ID: <20050605180616.GZ72096@zxy.spb.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9UV9rz0O2dU/yYYn" Content-Disposition: inline User-Agent: Mutt/1.5.7i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: Bill Paul Subject: [RFC] VLAN_MTU support for VIA Technologies Rhine I/II/III Ethernet device X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2005 18:06:18 -0000 --9UV9rz0O2dU/yYYn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I have patched vr driver for support fullsize 802.1q frames and have tested it on VIA EPIA ML-5000EA. All work fine. Please, commit it! -- Slawa Olhovchenkov --9UV9rz0O2dU/yYYn Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="vr.patch" *** sys/pci/if_vrreg.h Tue Feb 1 02:26:51 2005 --- sys/pci/if_vrreg.h.new Sat Jun 4 03:07:10 2005 *************** *** 393,399 **** #define VR_TX_LIST_CNT 128 #define VR_MIN_FRAMELEN 60 #define VR_FRAMELEN 1536 ! #define VR_RXLEN 1520 #define VR_TXOWN(x) x->vr_ptr->vr_status --- 393,399 ---- #define VR_TX_LIST_CNT 128 #define VR_MIN_FRAMELEN 60 #define VR_FRAMELEN 1536 ! #define VR_RXLEN 1524 #define VR_TXOWN(x) x->vr_ptr->vr_status *** sys/pci/if_vr.c Tue Mar 1 11:11:52 2005 --- sys/pci/if_vr.c.new Sat Jun 4 03:06:56 2005 *************** *** 740,745 **** --- 740,746 ---- #ifdef DEVICE_POLLING ifp->if_capabilities |= IFCAP_POLLING; #endif + ifp->if_capabilities |= IFCAP_VLAN_MTU; ifp->if_capenable = ifp->if_capabilities; /* Do MII setup. */ --9UV9rz0O2dU/yYYn--