Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_tom.c
Show First 20 Lines • Show All 1,895 Lines • ▼ Show 20 Lines | t4_tom_activate(struct adapter *sc) | ||||
tod->tod_tcp_info = t4_tcp_info; | tod->tod_tcp_info = t4_tcp_info; | ||||
#ifdef KERN_TLS | #ifdef KERN_TLS | ||||
tod->tod_alloc_tls_session = t4_alloc_tls_session; | tod->tod_alloc_tls_session = t4_alloc_tls_session; | ||||
#endif | #endif | ||||
tod->tod_pmtu_update = t4_pmtu_update; | tod->tod_pmtu_update = t4_pmtu_update; | ||||
for_each_port(sc, i) { | for_each_port(sc, i) { | ||||
for_each_vi(sc->port[i], v, vi) { | for_each_vi(sc->port[i], v, vi) { | ||||
TOEDEV(vi->ifp) = &td->tod; | SETTOEDEV(vi->ifp, &td->tod); | ||||
} | } | ||||
} | } | ||||
sc->tom_softc = td; | sc->tom_softc = td; | ||||
register_toedev(sc->tom_softc); | register_toedev(sc->tom_softc); | ||||
done: | done: | ||||
if (rc != 0) | if (rc != 0) | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |