Add VLAN capability.
Submitted by: Slawa Olhovchenkov <slw@zxy.spb.ru>
This commit is contained in:
parent
601c3cc018
commit
98b2967900
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user