diff options
author | K. Y. Srinivasan | 2011-09-13 19:59:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-09-16 20:06:03 +0200 |
commit | 2ddd5e5fb342b9f014d61941a4f73c0bd9b50a60 (patch) | |
tree | 1c84e45f3409a24899b5ae4e2e4875c69f69f846 /drivers/staging/hv/hyperv_net.h | |
parent | Staging: hv: storvsc: Eliminate the usage of ext field in struct hv_device (diff) | |
download | kernel-qcow2-linux-2ddd5e5fb342b9f014d61941a4f73c0bd9b50a60.tar.gz kernel-qcow2-linux-2ddd5e5fb342b9f014d61941a4f73c0bd9b50a60.tar.xz kernel-qcow2-linux-2ddd5e5fb342b9f014d61941a4f73c0bd9b50a60.zip |
Staging: hv: netvsc: Get rid of the usage of the ext field in struct hv_device
Now, eliminate the usage of ext field in struct hv_device for netvsc driver.
We do this by registering pointer to struct netvsc_device as the driver
specific data and eliminating the current usage of driver specific data
to save and retrieve the pointer to struct net_device.
Additionally, all access to the driver specific data is through
the vmbus wrapper functions. As part of this cleanup, we also get rid
of some unnecessary debug print statements.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/hyperv_net.h')
-rw-r--r-- | drivers/staging/hv/hyperv_net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/hv/hyperv_net.h b/drivers/staging/hv/hyperv_net.h index af8a37fb502f..366dd2b32b13 100644 --- a/drivers/staging/hv/hyperv_net.h +++ b/drivers/staging/hv/hyperv_net.h @@ -392,6 +392,8 @@ struct netvsc_device { struct nvsp_message revoke_packet; /* unsigned char HwMacAddr[HW_MACADDR_LEN]; */ + struct net_device *ndev; + /* Holds rndis device info */ void *extension; }; |