diff options
author | Michael Brown | 2007-06-27 15:48:31 +0200 |
---|---|---|
committer | Michael Brown | 2007-06-27 15:48:31 +0200 |
commit | f77815f2b1ecf9f14441110ca61c0cffa48ce0e3 (patch) | |
tree | e55993b9b5acd1fbe2163b655ce3214390fdbbd3 /src/net/aoe.c | |
parent | Partial migration of UDP to data-xfer interface. (Will not link at (diff) | |
download | ipxe-f77815f2b1ecf9f14441110ca61c0cffa48ce0e3.tar.gz ipxe-f77815f2b1ecf9f14441110ca61c0cffa48ce0e3.tar.xz ipxe-f77815f2b1ecf9f14441110ca61c0cffa48ce0e3.zip |
Kill off hotplug.h and just make net devices normal reference-counted
structures.
DHCP still broken and #if 0'd out.
Diffstat (limited to 'src/net/aoe.c')
-rw-r--r-- | src/net/aoe.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/net/aoe.c b/src/net/aoe.c index 084a3d4d..36721df6 100644 --- a/src/net/aoe.c +++ b/src/net/aoe.c @@ -266,19 +266,6 @@ struct net_protocol aoe_protocol __net_protocol = { }; /** - * Forget reference to net_device - * - * @v ref Persistent reference - */ -static void aoe_forget_netdev ( struct reference *ref ) { - struct aoe_session *aoe - = container_of ( ref, struct aoe_session, netdev_ref ); - - aoe->netdev = NULL; - ref_del ( &aoe->netdev_ref ); -} - -/** * Open AoE session * * @v aoe AoE session @@ -288,8 +275,6 @@ void aoe_open ( struct aoe_session *aoe ) { sizeof ( aoe->target ) ); aoe->tag = AOE_TAG_MAGIC; aoe->timer.expired = aoe_timer_expired; - aoe->netdev_ref.forget = aoe_forget_netdev; - ref_add ( &aoe->netdev_ref, &aoe->netdev->references ); list_add ( &aoe->list, &aoe_sessions ); } @@ -299,8 +284,6 @@ void aoe_open ( struct aoe_session *aoe ) { * @v aoe AoE session */ void aoe_close ( struct aoe_session *aoe ) { - if ( aoe->netdev ) - ref_del ( &aoe->netdev_ref ); list_del ( &aoe->list ); } |