Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jun 2005 22:06:16 +0400
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        freebsd-current@freebsd.org
Cc:        Bill Paul <wpaul@FreeBSD.org>
Subject:   [RFC] VLAN_MTU support for VIA Technologies Rhine I/II/III Ethernet device
Message-ID:  <20050605180616.GZ72096@zxy.spb.ru>

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

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



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