Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if_lagg.c
Show First 20 Lines • Show All 508 Lines • ▼ Show 20 Lines | lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params) | ||||
ifp->if_transmit = lagg_transmit; | ifp->if_transmit = lagg_transmit; | ||||
ifp->if_qflush = lagg_qflush; | ifp->if_qflush = lagg_qflush; | ||||
ifp->if_init = lagg_init; | ifp->if_init = lagg_init; | ||||
ifp->if_ioctl = lagg_ioctl; | ifp->if_ioctl = lagg_ioctl; | ||||
ifp->if_get_counter = lagg_get_counter; | ifp->if_get_counter = lagg_get_counter; | ||||
ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; | ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; | ||||
#ifdef RATELIMIT | #ifdef RATELIMIT | ||||
ifp->if_snd_tag_alloc = lagg_snd_tag_alloc; | ifp->if_snd_tag_alloc = lagg_snd_tag_alloc; | ||||
ifp->if_capenable = ifp->if_capabilities = IFCAP_HWSTATS | IFCAP_TXRTLMT; | |||||
#else | |||||
ifp->if_capenable = ifp->if_capabilities = IFCAP_HWSTATS; | |||||
#endif | #endif | ||||
ifp->if_capenable = ifp->if_capabilities = IFCAP_HWSTATS; | |||||
/* | /* | ||||
* Attach as an ordinary ethernet device, children will be attached | * Attach as an ordinary ethernet device, children will be attached | ||||
* as special device IFT_IEEE8023ADLAG. | * as special device IFT_IEEE8023ADLAG. | ||||
*/ | */ | ||||
ether_ifattach(ifp, eaddr); | ether_ifattach(ifp, eaddr); | ||||
sc->vlan_attach = EVENTHANDLER_REGISTER(vlan_config, | sc->vlan_attach = EVENTHANDLER_REGISTER(vlan_config, | ||||
▲ Show 20 Lines • Show All 1,723 Lines • Show Last 20 Lines |