Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Print message when the number of multicast...



details:   https://anonhg.NetBSD.org/src/rev/1b51701a4858
branches:  trunk
changeset: 454229:1b51701a4858
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Sep 11 04:59:55 2019 +0000

description:
Print message when the number of multicast addresses exceeded the limit (30).

diffstat:

 sys/dev/pci/ixgbe/ixgbe_vf.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 6f1310cfd03e -r 1b51701a4858 sys/dev/pci/ixgbe/ixgbe_vf.c
--- a/sys/dev/pci/ixgbe/ixgbe_vf.c      Tue Sep 10 23:19:34 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe_vf.c      Wed Sep 11 04:59:55 2019 +0000
@@ -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 @@
 
        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;
 



Home | Main Index | Thread Index | Old Index