Skip to content

Instantly share code, notes, and snippets.

@postwait
Created March 30, 2012 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postwait/2252575 to your computer and use it in GitHub Desktop.
Save postwait/2252575 to your computer and use it in GitHub Desktop.
--- a/usr/src/uts/common/io/igb/igb_main.c
+++ b/usr/src/uts/common/io/igb/igb_main.c
@@ -27,6 +27,10 @@
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+/*
+ * Copyright 2012, OmniTI Computer Consulting, Inc. All rights reserved.
+ */
+
#include "igb_sw.h"
static char ident[] = "Intel 1Gb Ethernet";
@@ -1048,6 +1052,9 @@ igb_init_locks(igb_t *igb)
mutex_init(&igb->link_lock, NULL,
MUTEX_DRIVER, DDI_INTR_PRI(igb->intr_pri));
+
+ mutex_init(&igb->rx_pending_lock, NULL,
+ MUTEX_DRIVER, DDI_INTR_PRI(igb->intr_pri));
}
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment