Lines 900-907
carp_send_ad_all(void)
Link Here
|
900 |
CARP_SCLOCK(sc); |
900 |
CARP_SCLOCK(sc); |
901 |
if ((SC2IFP(sc)->if_flags & IFF_UP) && |
901 |
if ((SC2IFP(sc)->if_flags & IFF_UP) && |
902 |
(SC2IFP(sc)->if_drv_flags & IFF_DRV_RUNNING) && |
902 |
(SC2IFP(sc)->if_drv_flags & IFF_DRV_RUNNING) && |
903 |
sc->sc_state == MASTER) |
903 |
sc->sc_state == MASTER) { |
|
|
904 |
CURVNET_SET(sc->sc_carpdev->if_vnet); |
904 |
carp_send_ad_locked(sc); |
905 |
carp_send_ad_locked(sc); |
|
|
906 |
CURVNET_RESTORE(); |
907 |
} |
905 |
CARP_SCUNLOCK(sc); |
908 |
CARP_SCUNLOCK(sc); |
906 |
} |
909 |
} |
907 |
mtx_unlock(&carp_mtx); |
910 |
mtx_unlock(&carp_mtx); |
Lines 913-919
carp_send_ad(void *v)
Link Here
|
913 |
struct carp_softc *sc = v; |
916 |
struct carp_softc *sc = v; |
914 |
|
917 |
|
915 |
CARP_SCLOCK(sc); |
918 |
CARP_SCLOCK(sc); |
|
|
919 |
CURVNET_SET(sc->sc_carpdev->if_vnet); |
916 |
carp_send_ad_locked(sc); |
920 |
carp_send_ad_locked(sc); |
|
|
921 |
CURVNET_RESTORE(); |
917 |
CARP_SCUNLOCK(sc); |
922 |
CARP_SCUNLOCK(sc); |
918 |
} |
923 |
} |
919 |
|
924 |
|
Lines 1364-1370
carp_master_down(void *v)
Link Here
|
1364 |
struct carp_softc *sc = v; |
1369 |
struct carp_softc *sc = v; |
1365 |
|
1370 |
|
1366 |
CARP_SCLOCK(sc); |
1371 |
CARP_SCLOCK(sc); |
|
|
1372 |
CURVNET_SET(sc->sc_carpdev->if_vnet); |
1367 |
carp_master_down_locked(sc); |
1373 |
carp_master_down_locked(sc); |
|
|
1374 |
CURVNET_RESTORE(); |
1368 |
CARP_SCUNLOCK(sc); |
1375 |
CARP_SCUNLOCK(sc); |
1369 |
} |
1376 |
} |
1370 |
|
1377 |
|