Skip to contentSkip to conversation

patch for ixgbe-3.3.9 (out-of-tree) driver.

PATCH Ben Greear 2 participants 2 messages Jun 1, 2011

Subsystems (2)
lore
Share & tools
lore

Ben Greear

author
#0 lore raw

Using 'ethtool -t ethX' with 82598 chipset causes kernel splats because spin-lock wasn't initialized properly. This can probably cause other problems, but I'm not certain of that.

I can't tell that anyone actually watches the sourceforge list, so posting it here...

The reason I'm using the out-of-tree driver is that a customer reports link bouncing when using the 82598 NIC. They are stuck on a .34 kernel at the moment, so maybe it's fixed upstream already. At any rate, I can't reproduce the problem locally, but the 3.3.9 driver appears to work for them.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
src/ixgbe_main.c +7 -5
@@ -5843,16 +5843,18 @@
 			adapter->flags |= IXGBE_FLAG_SRIOV_CAPABLE;
 		if (hw->device_id == IXGBE_DEV_ID_82599_T3_LOM)
 			adapter->flags2 |= IXGBE_FLAG2_TEMP_SENSOR_CAPABLE;
-#ifdef NETIF_F_NTUPLE
-		/* n-tuple support exists, always init our spinlock */
-		spin_lock_init(&adapter->fdir_perfect_lock);
-#endif /* NETIF_F_NTUPLE */
 		adapter->max_msix_q_vectors = IXGBE_MAX_MSIX_Q_VECTORS_82599;
 		break;
 	default:
 		break;
 	}
-	/* Default DCB settings, if applicable */
+
+#ifdef NETIF_F_NTUPLE
+        /* n-tuple support exists, always init our spinlock */
+        spin_lock_init(&adapter->fdir_perfect_lock);
+#endif /* NETIF_F_NTUPLE */
+
+        /* Default DCB settings, if applicable */
 	adapter->ring_feature[RING_F_DCB].indices = 8;
 
 	if (adapter->flags & IXGBE_FLAG_DCB_CAPABLE) {
#1 lore raw
Quoted 8 lines · Ben Greear

Using 'ethtool -t ethX' with 82598 chipset causes kernel splats because spin-lock wasn't initialized properly. This can probably cause other problems, but I'm not certain of that.

I can't tell that anyone actually watches the sourceforge list, so posting it here...

Quoted 9 lines

The reason I'm using the out-of-tree driver is that a customer reports link bouncing when using the 82598 NIC. They are stuck on a .34 kernel at the moment, so maybe it's fixed upstream already. At any rate, I can't reproduce the problem locally, but the 3.3.9 driver appears to work for them.

Thanks,
Ben

Ben,

I will make certain this fix is incorporated into our ixgbe out-of-tree driver for the next release.

Thanks for the patch,

Alex