Module Name: src Committed By: msaitoh Date: Thu Sep 12 11:48:44 UTC 2019
Modified Files: src/sys/dev/pci/ixgbe: ixv.c Log Message: Reduce ixv(4)'s multicast table array size in ixv_set_multi from MAX_NUM_MULTICAST_ADDRESSES(128) to IXGBE_MAX_VF_MC(30). To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.133 src/sys/dev/pci/ixgbe/ixv.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/ixv.c diff -u src/sys/dev/pci/ixgbe/ixv.c:1.132 src/sys/dev/pci/ixgbe/ixv.c:1.133 --- src/sys/dev/pci/ixgbe/ixv.c:1.132 Thu Sep 12 06:19:47 2019 +++ src/sys/dev/pci/ixgbe/ixv.c Thu Sep 12 11:48:44 2019 @@ -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 @@ ixv_set_multi(struct adapter *adapter) 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 @@ ixv_set_multi(struct adapter *adapter) 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); }