Skip to contentSkip to conversation

sgi-xp: link XPNET's net_device_ops to its net_device structure

PATCH Applied Dean Nelson 2 participants 2 messages Feb 3, 2009 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sgi-xp: link XPNET's net_device_ops to its net_device structure

A recent patch by Stephen Hemminger to convert XPNET to use net_device_ops and internal net_device_stats failed to link the net_device_ops structure to the net_device structure. See commit e8ac9c55f28482f5b2f497a8e7eb90985db237c2.

Cc Stephen Hemminger <[email protected]>

---

 drivers/misc/sgi-xp/xpnet.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/misc/sgi-xp/xpnet.c +2 -1
Index: linux/drivers/misc/sgi-xp/xpnet.c
===================================================================
@@ -3,7 +3,7 @@
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  *
- * Copyright (C) 1999-2008 Silicon Graphics, Inc. All rights reserved.
+ * Copyright (C) 1999-2009 Silicon Graphics, Inc. All rights reserved.
  */
 
 /*
@@ -551,6 +551,7 @@ xpnet_init(void)
 
 	netif_carrier_off(xpnet_device);
 
+	xpnet_device->netdev_ops = &xpnet_netdev_ops;
 	xpnet_device->mtu = XPNET_DEF_MTU;
 
 	/*
Applied
#1 lore raw

From: Dean Nelson <[email protected]>
Date: Tue, 3 Feb 2009 10:24:51 -0600

Quoted 5 lines

A recent patch by Stephen Hemminger to convert XPNET to use net_device_ops and internal net_device_stats failed to link the net_device_ops structure to the net_device structure. See commit e8ac9c55f28482f5b2f497a8e7eb90985db237c2.

Applied.

Please CC: [email protected] for networking patches in the future so that they get properly tracked at:

http://patchwork.ozlabs.org/project/netdev/list/

Thank you.