From 01753eaba462123178a33b96a4159f9150563f75 Mon Sep 17 00:00:00 2001 From: visa Date: Wed, 17 Feb 2021 14:12:29 +0000 Subject: [PATCH] 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. --- sys/arch/octeon/dev/if_cnmac.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } -- 2.20.1