CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2023/11/10 08:51:24
Modified files: sys/arch/armv7/omap: if_cpsw.c sys/arch/armv7/sunxi: sxie.c sys/arch/octeon/dev: if_cnmac.c sys/dev/fdt : if_dwge.c if_dwxe.c if_mvneta.c if_mvpp.c sys/dev/ic : acx.c aic6915.c ath.c bcmgenet.c bwi.c dc.c dwqe.c elink3.c fxp.c gem.c malo.c pgt.c re.c smc83c170.c ti.c xl.c sys/dev/pci : if_age.c if_alc.c if_ale.c if_aq_pci.c if_bge.c if_bnx.c if_bnxt.c if_cas.c if_em.c if_et.c if_iavf.c if_igc.c if_ix.c if_ixgb.c if_ixl.c if_jme.c if_lge.c if_mcx.c if_msk.c if_myx.c if_nfe.c if_ngbe.c if_nge.c if_nxe.c if_oce.c if_pcn.c if_rge.c if_se.c if_sis.c if_sk.c if_ste.c if_stge.c if_tht.c if_tl.c if_txp.c if_vge.c if_vic.c if_vmx.c if_vte.c if_wb.c if_xge.c sys/dev/pv : if_hvn.c if_vio.c if_xnf.c sys/net : if.c if_spppsubr.c ifq.c ifq.h Log message: Make ifq and ifiq interface MP safe. Rename ifq_set_maxlen() to ifq_init_maxlen(). This function neither uses WRITE_ONCE() nor a mutex and is called before the ifq mutex is initialized. The new name expresses that it should be used only during interface attach when there is no concurrency. Protect ifq_len(), ifq_empty(), ifiq_len(), and ifiq_empty() with READ_ONCE(). They can be used without lock as they only read a single integer. OK dlg@