Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_rdma.c
Show First 20 Lines • Show All 732 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
ice_rdma_pf_init(struct ice_softc *sc) | ice_rdma_pf_init(struct ice_softc *sc) | ||||
{ | { | ||||
struct ice_rdma_peer *peer = &sc->rdma_entry.peer; | struct ice_rdma_peer *peer = &sc->rdma_entry.peer; | ||||
sx_xlock(&ice_rdma.mtx); | sx_xlock(&ice_rdma.mtx); | ||||
/* Update the MTU */ | /* Update the MTU */ | ||||
peer->mtu = sc->ifp->if_mtu; | peer->mtu = if_getmtu(sc->ifp); | ||||
sc->rdma_entry.initiated = true; | sc->rdma_entry.initiated = true; | ||||
if (sc->rdma_entry.attached && ice_rdma.registered) { | if (sc->rdma_entry.attached && ice_rdma.registered) { | ||||
sx_xunlock(&ice_rdma.mtx); | sx_xunlock(&ice_rdma.mtx); | ||||
return IRDMA_OPEN(peer); | return IRDMA_OPEN(peer); | ||||
} | } | ||||
sx_xunlock(&ice_rdma.mtx); | sx_xunlock(&ice_rdma.mtx); | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |