Add VLAN capability.

Submitted by:	Slawa Olhovchenkov <slw@zxy.spb.ru>
This commit is contained in:
Poul-Henning Kamp 2007-04-23 12:19:02 +00:00
parent 601c3cc018
commit 98b2967900
4 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

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

View File

@ -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);

View File

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