Browse Source

Force MAC address for testing purposes

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
74a49af4ab
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/drivers/net/mlx_ipoib/mt25218.c

+ 4
- 0
src/drivers/net/mlx_ipoib/mt25218.c View File

@@ -223,6 +223,10 @@ static int mt25218_probe(struct nic *nic, struct pci_device *pci)
223 223
 		/* point to NIC specific routines */
224 224
 		nic->nic_op = &mt25218_operations;
225 225
 
226
+		uint8_t fixed_node_addr[ETH_ALEN] = { 0x00, 0x02, 0xc9,
227
+						      0x20, 0xf5, 0x95 };
228
+		memcpy ( nic->node_addr, fixed_node_addr, ETH_ALEN );
229
+
226 230
 		return 1;
227 231
 	}
228 232
 	/* else */

Loading…
Cancel
Save