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 Reduce ixv(4)'s multicast table array size...



details:   https://anonhg.NetBSD.org/src/rev/02ad070475ca
branches:  trunk
changeset: 965306:02ad070475ca
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Sep 12 11:48:44 2019 +0000

description:
Reduce ixv(4)'s multicast table array size in ixv_set_multi from
MAX_NUM_MULTICAST_ADDRESSES(128) to IXGBE_MAX_VF_MC(30).

diffstat:

 sys/dev/pci/ixgbe/ixv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 74ee9cf862bc -r 02ad070475ca sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Thu Sep 12 10:18:50 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Thu Sep 12 11:48:44 2019 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.132 2019/09/12 06:19:47 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.133 2019/09/12 11:48:44 msaitoh Exp $*/
 
 /******************************************************************************
 
@@ -1111,7 +1111,7 @@
        struct ether_multi *enm;
        struct ether_multistep step;
        struct ethercom *ec = &adapter->osdep.ec;
-       u8      mta[MAX_NUM_MULTICAST_ADDRESSES * IXGBE_ETH_LENGTH_OF_ADDRESS];
+       u8      mta[IXGBE_MAX_VF_MC * IXGBE_ETH_LENGTH_OF_ADDRESS];
        u8                 *update_ptr;
        int                mcnt = 0;
 
@@ -1126,7 +1126,7 @@
                    IXGBE_ETH_LENGTH_OF_ADDRESS);
                mcnt++;
                /* XXX This might be required --msaitoh */
-               if (mcnt >= MAX_NUM_MULTICAST_ADDRESSES)
+               if (mcnt >= IXGBE_MAX_VF_MC)
                        break;
                ETHER_NEXT_MULTI(step, enm);
        }



Home | Main Index | Thread Index | Old Index