cvs commit: src/sys/pci if_vr.c if_vrreg.h

Slawa Olhovchenkov slw at zxy.spb.ru
Tue Apr 17 13:07:39 UTC 2007


On Tue, Apr 17, 2007 at 12:23:57PM +0000, Poul-Henning Kamp wrote:

Can you add vlan tagging support?

*** 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. */


> phk         2007-04-17 12:23:57 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/pci              if_vr.c if_vrreg.h 
>   Log:
>   Improve the if_vr driver ever so slightly.
>   
>   The 6105M and 6102 does not have the DWORD alignment problem, so
>   don't m_defrag() every packet in the transmit path for those.
>   
>   More stringent usage of tx-descriptor ring and its flags.
>   
>   Tested on 6102 and 6105M, other chips may also be able to run
>   without the m_defrag() but I have neither hardware nor docs to
>   find out.
>   
>   Sponsored by:   Soekris Engineering
>   
>   Revision  Changes    Path
>   1.118     +108 -87   src/sys/pci/if_vr.c
>   1.28      +3 -1      src/sys/pci/if_vrreg.h
> _______________________________________________
> cvs-src at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/cvs-src
> To unsubscribe, send any mail to "cvs-src-unsubscribe at freebsd.org"


More information about the cvs-all mailing list