Module Name:    src
Committed By:   msaitoh
Date:           Tue Jul  2 04:09:03 UTC 2019

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

Log Message:
 Other than IXGBE_VF_RESET should wait ACK, so use ixgbevf_write_msg_read_ack()
instead of write_posted() in ixgbe_update_mc_addr_list_vf().


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/pci/ixgbe/ixgbe_vf.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_vf.c
diff -u src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.17 src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.18
--- src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.17	Wed Apr  4 08:59:22 2018
+++ src/sys/dev/pci/ixgbe/ixgbe_vf.c	Tue Jul  2 04:09:03 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_vf.c,v 1.17 2018/04/04 08:59:22 msaitoh Exp $ */
+/* $NetBSD: ixgbe_vf.c,v 1.18 2019/07/02 04:09:03 msaitoh Exp $ */
 
 /******************************************************************************
   SPDX-License-Identifier: BSD-3-Clause
@@ -388,7 +388,6 @@ s32 ixgbe_update_mc_addr_list_vf(struct 
 				 u32 mc_addr_count, ixgbe_mc_addr_itr next,
 				 bool clear)
 {
-	struct ixgbe_mbx_info *mbx = &hw->mbx;
 	u32 msgbuf[IXGBE_VFMAILBOX_SIZE];
 	u16 *vector_list = (u16 *)&msgbuf[1];
 	u32 vector;
@@ -419,8 +418,8 @@ s32 ixgbe_update_mc_addr_list_vf(struct 
 		DEBUGOUT1("Hash value = 0x%03X\n", vector);
 		vector_list[i] = (u16)vector;
 	}
-
-	return mbx->ops.write_posted(hw, msgbuf, IXGBE_VFMAILBOX_SIZE, 0);
+	return ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf,
+	    IXGBE_VFMAILBOX_SIZE);
 }
 
 /**

Reply via email to