changeset 13926:864d02b072c2

3492 some e1000g devices don't support 15 unicast addresses Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Marcel Telka <marcel.telka@nexenta.com> Reviewed by: Albert Lee <trisk@nexenta.com> Reviewed by: Sašo Kiselkov <skiselkov.ml@gmail.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Eric Schrock <eric.schrock@delphix.com>
author Hans Rosenfeld <hans.rosenfeld@nexenta.com>
date Tue, 22 Jan 2013 12:11:15 -0500
parents 696f38d48381
children 4801c57f1ca7
files usr/src/uts/common/io/e1000g/e1000g_main.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/e1000g/e1000g_main.c	Mon Jan 21 13:07:17 2013 -0500
+++ b/usr/src/uts/common/io/e1000g/e1000g_main.c	Tue Jan 22 12:11:15 2013 -0500
@@ -23,8 +23,8 @@
  */
 
 /*
- * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
+ * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  */
 
 /*
@@ -2438,7 +2438,8 @@
 
 	if (Adapter->init_count == 0) {
 		/* Initialize the multiple unicast addresses */
-		Adapter->unicst_total = MAX_NUM_UNICAST_ADDRESSES;
+		Adapter->unicst_total = min(hw->mac.rar_entry_count,
+		    MAX_NUM_UNICAST_ADDRESSES);
 
 		/* Workaround for an erratum of 82571 chipst */
 		if ((hw->mac.type == e1000_82571) &&