From nobody Wed Apr 13 16:00:21 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8EF051AFBDAC; Wed, 13 Apr 2022 16:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdnP13YMVz4pkV; Wed, 13 Apr 2022 16:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649865621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HYvy84n1/c2Q/XJe+qsl/U6Q0BpvvFWVWLaJJn1M2GA=; b=xwbjumzcL3+vYdeOpvN0+pWYjQFoME8ieSC5LDYFlhxNpCNccKG2O5/l/VtIXRbTgnIcU3 Yb+Ejnq1LlZMZR8k0hDraYcfIZEdDBH8ljpvwdzjXUk7pw5LuFR4VpzwqJCDtRm0bWjq78 0SK5ThyUBUGa+hkxeI82Vws+qFHmMZoSj/lYx1GDEWPbYgspagZ7PT96IUuoehY962+GLX DQyMKvuQcPZI1PYxfQKcN8iJv1JfnLmB96NHLXMhw02ABJgwAK5Vx680QgyxZt0V3e5XwZ MDcxDzKDEApNASPPBm7ClM/od+2zuOAJcQCZXTHDwK07wEjI00YkmDgrr7Pt5Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 574597000; Wed, 13 Apr 2022 16:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23DG0LWc000907; Wed, 13 Apr 2022 16:00:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DG0Ljf000900; Wed, 13 Apr 2022 16:00:21 GMT (envelope-from git) Date: Wed, 13 Apr 2022 16:00:21 GMT Message-Id: <202204131600.23DG0Ljf000900@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 395cc55d8966 - main - ixgbe: Update mc filter before FCTRL flags List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 395cc55d896654b8f75071e71e856b22aed87da5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649865621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HYvy84n1/c2Q/XJe+qsl/U6Q0BpvvFWVWLaJJn1M2GA=; b=f7mt8k3nq8Ic3QHQMDNnsfSTwNJzoEVs8EL9ELvffG82+hcvuBCUISSZeCs1dJXDOg2OrB sBqKvVuq6NXKPRnTHely3VHtF9nGvqh1mt9WaYmnC4euF5OR3+WdFJMNBAuW4474VLjzJR rxnYDStBXfSqYtAOGFszTUeIPEG3XUVlN7wBRWCTWj2X8o/6tWDiamJOirZUK8TDJZfRAW p3RWHt/1hZ+gZipSB0gb9VLgAarirrQMsikxGti/QnsIip2KkkbDzDWCq7LIBV9h/01RQH hpVmBbdTXMy1+c7+1nnrDThaWrFBrTr25LE7yoZXtIU8n106prHtjzehdj0g/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649865621; a=rsa-sha256; cv=none; b=qVGnNM5XFMJ3rf2FW3tObilh1Yd7O3oaRnsc4K1u5GZDhUKwUtdFieMq7X2JO5OHpU9XNc yQfbEPOYSaGBMRpeNPe15BaYRO5S8/LbIGdDFzmaQSc6ef64n0Xf3Bc9EuH6vprF/gXvO0 vk5QF6QFOMx/QRS6fqqSu5PooHt8+vZnVKhsg23X7Mn5yi3WC5RBYAO+T1LVIFSNwMM5Kb wU3aCUp3Y9zx1opDMtnoYKlhsno5tgH1XIgTpLW35tZFKwXQ4mCQVtW75malheKeJTyJNd extDNPrso5up9wSzbQMDtQ0poZM5C2PcwTs3SO3Exln9/dfsun2Flduu+hsOMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kbowling (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=395cc55d896654b8f75071e71e856b22aed87da5 commit 395cc55d896654b8f75071e71e856b22aed87da5 Author: Kevin Bowling AuthorDate: 2022-04-13 15:59:21 +0000 Commit: Kevin Bowling CommitDate: 2022-04-13 15:59:21 +0000 ixgbe: Update mc filter before FCTRL flags Update mc filter array before changing FCTRL flags, similar to 5a3eb6207a35 Approved by: grehan MFC after: 2 weeks --- sys/dev/ixgbe/if_ix.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c index 4e34a1b12302..d7df1dcf6899 100644 --- a/sys/dev/ixgbe/if_ix.c +++ b/sys/dev/ixgbe/if_ix.c @@ -3400,6 +3400,12 @@ ixgbe_if_multi_set(if_ctx_t ctx) mcnt = if_foreach_llmaddr(iflib_get_ifp(ctx), ixgbe_mc_filter_apply, sc); + if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) { + update_ptr = (u8 *)mta; + ixgbe_update_mc_addr_list(&sc->hw, update_ptr, mcnt, + ixgbe_mc_array_itr, true); + } + fctrl = IXGBE_READ_REG(&sc->hw, IXGBE_FCTRL); if (ifp->if_flags & IFF_PROMISC) @@ -3412,13 +3418,6 @@ ixgbe_if_multi_set(if_ctx_t ctx) fctrl &= ~(IXGBE_FCTRL_UPE | IXGBE_FCTRL_MPE); IXGBE_WRITE_REG(&sc->hw, IXGBE_FCTRL, fctrl); - - if (mcnt < MAX_NUM_MULTICAST_ADDRESSES) { - update_ptr = (u8 *)mta; - ixgbe_update_mc_addr_list(&sc->hw, update_ptr, mcnt, - ixgbe_mc_array_itr, true); - } - } /* ixgbe_if_multi_set */ /************************************************************************