mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Mark pf callouts as NET_MPSAFE.
Requested by: yongari (serveral times) Approved by: re (blanket) MFC after: 1 week
This commit is contained in:
parent
cf21d53cbf
commit
c8d1dc8cc8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147321
@ -220,15 +220,10 @@ pfsync_clone_create(struct if_clone *ifc, int unit)
|
||||
ifp->if_baudrate = IF_Mbps(100);
|
||||
ifp->if_softc = sc;
|
||||
pfsync_setmtu(sc, MCLBYTES);
|
||||
/*
|
||||
* XXX
|
||||
* The 2nd arg. 0 to callout_init(9) shoule be set to CALLOUT_MPSAFE
|
||||
* if Gaint lock is removed from the network stack.
|
||||
*/
|
||||
callout_init(&sc->sc_tmo, 0);
|
||||
callout_init(&sc->sc_bulk_tmo, 0);
|
||||
callout_init(&sc->sc_bulkfail_tmo, 0);
|
||||
callout_init(&sc->sc_send_tmo, 0);
|
||||
callout_init(&sc->sc_tmo, NET_CALLOUT_MPSAFE);
|
||||
callout_init(&sc->sc_bulk_tmo, NET_CALLOUT_MPSAFE);
|
||||
callout_init(&sc->sc_bulkfail_tmo, NET_CALLOUT_MPSAFE);
|
||||
callout_init(&sc->sc_send_tmo, NET_CALLOUT_MPSAFE);
|
||||
mtx_init(&sc->sc_ifq.ifq_mtx, ifp->if_xname, "pfsync send queue",
|
||||
MTX_DEF);
|
||||
if_attach(ifp);
|
||||
|
@ -335,12 +335,7 @@ pfattach(void)
|
||||
my_timeout[PFTM_SRC_NODE] = PFTM_SRC_NODE_VAL;
|
||||
my_timeout[PFTM_TS_DIFF] = PFTM_TS_DIFF_VAL;
|
||||
|
||||
/*
|
||||
* XXX
|
||||
* The 2nd arg. 0 to callout_init(9) shoule be set to CALLOUT_MPSAFE
|
||||
* if Gaint lock is removed from the network stack.
|
||||
*/
|
||||
callout_init(&pf_expire_to, 0);
|
||||
callout_init(&pf_expire_to, NET_CALLOUT_MPSAFE);
|
||||
callout_reset(&pf_expire_to, my_timeout[PFTM_INTERVAL] * hz,
|
||||
pf_purge_timeout, &pf_expire_to);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user