Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186591
b: refs/heads/master
c: 2d07534
h: refs/heads/master
i:
  186589: 84fc8ab
  186587: 5e8f4a8
  186583: 4651e50
  186575: 411b425
  186559: 68f0d19
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Mar 4, 2010
1 parent 33636a7 commit 751ebb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 354b0a643e89dd3163278c9a0ac9cbcb9ef5c298
refs/heads/master: 2d0753464b497287565c2e54d3ae67666852ef57
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/NetVscApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ struct netvsc_driver {
void (*OnLinkStatusChanged)(struct hv_device *dev, u32 Status);

/* Specific to this driver */
int (*OnOpen)(struct hv_device *dev);
int (*OnClose)(struct hv_device *dev);
int (*OnSend)(struct hv_device *dev, struct hv_netvsc_packet *packet);

Expand All @@ -119,5 +118,6 @@ struct netvsc_device_info {

/* Interface */
int NetVscInitialize(struct hv_driver *drv);
int RndisFilterOnOpen(struct hv_device *Device);

#endif /* _NETVSC_API_H_ */
5 changes: 1 addition & 4 deletions trunk/drivers/staging/hv/RndisFilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ static int RndisFilterOnDeviceRemove(struct hv_device *Device);

static void RndisFilterOnCleanup(struct hv_driver *Driver);

static int RndisFilterOnOpen(struct hv_device *Device);

static int RndisFilterOnClose(struct hv_device *Device);

static int RndisFilterOnSend(struct hv_device *Device,
Expand Down Expand Up @@ -654,7 +652,6 @@ int RndisFilterInit(struct netvsc_driver *Driver)
Driver->Base.OnDeviceRemove = RndisFilterOnDeviceRemove;
Driver->Base.OnCleanup = RndisFilterOnCleanup;
Driver->OnSend = RndisFilterOnSend;
Driver->OnOpen = RndisFilterOnOpen;
Driver->OnClose = RndisFilterOnClose;
/* Driver->QueryLinkStatus = RndisFilterQueryDeviceLinkStatus; */
Driver->OnReceiveCallback = RndisFilterOnReceive;
Expand Down Expand Up @@ -888,7 +885,7 @@ static void RndisFilterOnCleanup(struct hv_driver *Driver)
DPRINT_EXIT(NETVSC);
}

static int RndisFilterOnOpen(struct hv_device *Device)
int RndisFilterOnOpen(struct hv_device *Device)
{
int ret;
struct netvsc_device *netDevice = Device->Extension;
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ static void netvsc_set_multicast_list(struct net_device *net)
static int netvsc_open(struct net_device *net)
{
struct net_device_context *net_device_ctx = netdev_priv(net);
struct driver_context *driver_ctx =
driver_to_driver_context(net_device_ctx->device_ctx->device.driver);
struct netvsc_driver_context *net_drv_ctx =
(struct netvsc_driver_context *)driver_ctx;
struct netvsc_driver *net_drv_obj = &net_drv_ctx->drv_obj;
struct hv_device *device_obj = &net_device_ctx->device_ctx->device_obj;
int ret = 0;

Expand All @@ -87,7 +82,7 @@ static int netvsc_open(struct net_device *net)
sizeof(struct net_device_stats));

/* Open up the device */
ret = net_drv_obj->OnOpen(device_obj);
ret = RndisFilterOnOpen(device_obj);
if (ret != 0) {
DPRINT_ERR(NETVSC_DRV,
"unable to open device (ret %d).", ret);
Expand Down

0 comments on commit 751ebb1

Please sign in to comment.