Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_vlan.c
| Show First 20 Lines • Show All 1,916 Lines • ▼ Show 20 Lines | vlan_capabilities(struct ifvlan *ifv) | ||||
| * All TOE drivers in the tree today can deal with VLANs. If this | * All TOE drivers in the tree today can deal with VLANs. If this | ||||
| * changes then IFCAP_VLAN_TOE should be promoted to a full capability | * changes then IFCAP_VLAN_TOE should be promoted to a full capability | ||||
| * with its own bit. | * with its own bit. | ||||
| */ | */ | ||||
| #define IFCAP_VLAN_TOE IFCAP_TOE | #define IFCAP_VLAN_TOE IFCAP_TOE | ||||
| if (p->if_capabilities & IFCAP_VLAN_TOE) | if (p->if_capabilities & IFCAP_VLAN_TOE) | ||||
| cap |= p->if_capabilities & IFCAP_TOE; | cap |= p->if_capabilities & IFCAP_TOE; | ||||
| if (p->if_capenable & IFCAP_VLAN_TOE) { | if (p->if_capenable & IFCAP_VLAN_TOE) { | ||||
| TOEDEV(ifp) = TOEDEV(p); | SETTOEDEV(ifp, TOEDEV(p)); | ||||
| ena |= mena & IFCAP_TOE; | ena |= mena & IFCAP_TOE; | ||||
| } | } | ||||
| /* | /* | ||||
| * If the parent interface supports dynamic link state, so does the | * If the parent interface supports dynamic link state, so does the | ||||
| * VLAN interface. | * VLAN interface. | ||||
| */ | */ | ||||
| cap |= (p->if_capabilities & IFCAP_LINKSTATE); | cap |= (p->if_capabilities & IFCAP_LINKSTATE); | ||||
| ▲ Show 20 Lines • Show All 425 Lines • Show Last 20 Lines | |||||