From: visa Date: Wed, 17 Feb 2021 14:12:29 +0000 (+0000) Subject: Do not reprogram address filter after MII status change X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=01753eaba462123178a33b96a4159f9150563f75;p=openbsd Do not reprogram address filter after MII status change The address filter is not affected by link parameter changes, so its reprogramming can be skipped. --- diff --git a/sys/arch/octeon/dev/if_cnmac.c b/sys/arch/octeon/dev/if_cnmac.c index ebb341f5948..b080c0b335e 100644 --- a/sys/arch/octeon/dev/if_cnmac.c +++ b/sys/arch/octeon/dev/if_cnmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cnmac.c,v 1.81 2021/02/13 17:12:38 visa Exp $ */ +/* $OpenBSD: if_cnmac.c,v 1.82 2021/02/17 14:12:29 visa Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -450,16 +450,12 @@ void cnmac_mii_statchg(struct device *self) { struct cnmac_softc *sc = (struct cnmac_softc *)self; - struct ifnet *ifp = &sc->sc_arpcom.ac_if; cn30xxpko_port_enable(sc->sc_pko, 0); cn30xxgmx_port_enable(sc->sc_gmx_port, 0); cnmac_reset(sc); - if (ISSET(ifp->if_flags, IFF_RUNNING)) - cn30xxgmx_set_filter(sc->sc_gmx_port); - cn30xxpko_port_enable(sc->sc_pko, 1); cn30xxgmx_port_enable(sc->sc_gmx_port, 1); }