Module Name: src
Committed By: msaitoh
Date: Wed Sep 11 04:59:55 UTC 2019
Modified Files:
src/sys/dev/pci/ixgbe: ixgbe_vf.c
Log Message:
Print message when the number of multicast addresses exceeded the limit (30).
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 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.18 src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.19
--- src/sys/dev/pci/ixgbe/ixgbe_vf.c:1.18 Tue Jul 2 04:09:03 2019
+++ src/sys/dev/pci/ixgbe/ixgbe_vf.c Wed Sep 11 04:59:55 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe_vf.c,v 1.18 2019/07/02 04:09:03 msaitoh Exp $ */
+/* $NetBSD: ixgbe_vf.c,v 1.19 2019/09/11 04:59:55 msaitoh Exp $ */
/******************************************************************************
SPDX-License-Identifier: BSD-3-Clause
@@ -409,7 +409,13 @@ s32 ixgbe_update_mc_addr_list_vf(struct
DEBUGOUT1("MC Addr Count = %d\n", mc_addr_count);
- cnt = (mc_addr_count > 30) ? 30 : mc_addr_count;
+ if (mc_addr_count > 30) {
+ device_printf(ixgbe_dev_from_hw(hw),
+ "number of multicast addresses exceeded the limit "
+ "(%u > 30)\n", mc_addr_count);
+ cnt = 30;
+ } else
+ cnt = mc_addr_count;
msgbuf[0] = IXGBE_VF_SET_MULTICAST;
msgbuf[0] |= cnt << IXGBE_VT_MSGINFO_SHIFT;