Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249687
b: refs/heads/master
c: e3f8a80
h: refs/heads/master
i:
  249685: de942a6
  249683: eee6f17
  249679: 35733c1
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent d673424 commit 8bcaefe
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 27 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: ac6f78590104f01036ae7f1ecc062411a251f756
refs/heads/master: e3f8a80efbf8a857fd26b5154c66b3fb614e5bbd
11 changes: 0 additions & 11 deletions trunk/drivers/staging/hv/hyperv_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,6 @@ struct netvsc_driver {
u32 ring_buf_size;
u32 req_ext_size;

/*
* This is set by the caller to allow us to callback when we
* receive a packet from the "wire"
*/
int (*recv_cb)(struct hv_device *dev,
struct hv_netvsc_packet *packet);
void (*link_status_change)(struct hv_device *dev, u32 status);

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

};

static inline
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,6 @@ int netvsc_initialize(struct hv_driver *drv)
drv->name = driver_name;
memcpy(&drv->dev_type, &netvsc_device_type, sizeof(struct hv_guid));


driver->send = netvsc_send;

rndis_filter_init(driver);
return 0;
}
2 changes: 0 additions & 2 deletions trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,6 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
int ret;

net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE;
net_drv_obj->recv_cb = netvsc_recv_callback;
net_drv_obj->link_status_change = netvsc_linkstatus_callback;

/* Callback to client driver to complete the initialization */
drv_init(&net_drv_obj->base);
Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/staging/hv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,16 +596,6 @@ int rndis_filter_init(struct netvsc_driver *drv)
ASSERT(Driver->OnLinkStatusChanged);
rndisDriver->OnLinkStatusChanged = Driver->OnLinkStatusChanged;*/

/* Save the original dispatch handlers before we override it */
rndis_filter.inner_drv.send = drv->send;
rndis_filter.inner_drv.recv_cb = drv->recv_cb;
rndis_filter.inner_drv.link_status_change =
drv->link_status_change;

/* Override */
drv->send = rndis_filter_send;
drv->recv_cb = rndis_filter_receive;

return 0;
}

Expand Down

0 comments on commit 8bcaefe

Please sign in to comment.