Module Name:    src
Committed By:   msaitoh
Date:           Fri Oct  6 14:35:25 UTC 2023

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe.c

Log Message:
ixg(4): Update FCTRL after writing multicast filter. Same as other OSes.

 From FreeBSD 395cc55d896654b8f75071e71e856b22aed87da5.


To generate a diff of this commit:
cvs rdiff -u -r1.331 -r1.332 src/sys/dev/pci/ixgbe/ixgbe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.331 src/sys/dev/pci/ixgbe/ixgbe.c:1.332
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.331	Thu Sep 14 08:48:29 2023
+++ src/sys/dev/pci/ixgbe/ixgbe.c	Fri Oct  6 14:35:25 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.331 2023/09/14 08:48:29 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.332 2023/10/06 14:35:25 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.331 2023/09/14 08:48:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.332 2023/10/06 14:35:25 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -4551,8 +4551,6 @@ ixgbe_set_rxfilter(struct adapter *adapt
 	} else
 		fctrl &= ~(IXGBE_FCTRL_UPE | IXGBE_FCTRL_MPE);
 
-	IXGBE_WRITE_REG(&adapter->hw, IXGBE_FCTRL, fctrl);
-
 	/* Update multicast filter entries only when it's not ALLMULTI */
 	if ((ec->ec_flags & ETHER_F_ALLMULTI) == 0) {
 		ETHER_UNLOCK(ec);
@@ -4561,6 +4559,8 @@ ixgbe_set_rxfilter(struct adapter *adapt
 		    ixgbe_mc_array_itr, TRUE);
 	} else
 		ETHER_UNLOCK(ec);
+
+	IXGBE_WRITE_REG(&adapter->hw, IXGBE_FCTRL, fctrl);
 } /* ixgbe_set_rxfilter */
 
 /************************************************************************

Reply via email to