From 98b296790075a455e758a7b7bbb18c4a6ac2e88c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 23 Apr 2007 12:19:02 +0000 Subject: [PATCH] Add VLAN capability. Submitted by: Slawa Olhovchenkov --- sys/dev/vr/if_vr.c | 1 + sys/dev/vr/if_vrreg.h | 2 +- sys/pci/if_vr.c | 1 + sys/pci/if_vrreg.h | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 15f02b53b618..e5a7d7d6a9c4 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -575,6 +575,7 @@ vr_attach(device_t dev) ifp->if_capabilities |= IFCAP_HWCSUM; } + ifp->if_capabilities |= IFCAP_VLAN_MTU; ifp->if_capenable = ifp->if_capabilities; if (ifp->if_capenable & IFCAP_TXCSUM) ifp->if_hwassist = (CSUM_IP | CSUM_TCP | CSUM_UDP); diff --git a/sys/dev/vr/if_vrreg.h b/sys/dev/vr/if_vrreg.h index b3b01f0ca55f..d1073bd180b3 100644 --- a/sys/dev/vr/if_vrreg.h +++ b/sys/dev/vr/if_vrreg.h @@ -401,7 +401,7 @@ struct vr_desc { #define VR_TX_LIST_CNT 256 #define VR_MIN_FRAMELEN 60 #define VR_FRAMELEN 1536 -#define VR_RXLEN 1520 +#define VR_RXLEN 1524 struct vr_mii_frame { u_int8_t mii_stdelim; diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index 15f02b53b618..e5a7d7d6a9c4 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/if_vr.c @@ -575,6 +575,7 @@ vr_attach(device_t dev) ifp->if_capabilities |= IFCAP_HWCSUM; } + ifp->if_capabilities |= IFCAP_VLAN_MTU; ifp->if_capenable = ifp->if_capabilities; if (ifp->if_capenable & IFCAP_TXCSUM) ifp->if_hwassist = (CSUM_IP | CSUM_TCP | CSUM_UDP); diff --git a/sys/pci/if_vrreg.h b/sys/pci/if_vrreg.h index b3b01f0ca55f..d1073bd180b3 100644 --- a/sys/pci/if_vrreg.h +++ b/sys/pci/if_vrreg.h @@ -401,7 +401,7 @@ struct vr_desc { #define VR_TX_LIST_CNT 256 #define VR_MIN_FRAMELEN 60 #define VR_FRAMELEN 1536 -#define VR_RXLEN 1520 +#define VR_RXLEN 1524 struct vr_mii_frame { u_int8_t mii_stdelim;