search for: net_drv

Displaying 4 results from an estimated 4 matches for "net_drv".

Did you mean: net_dev
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...tart_xmit(struct sk_buff *skb, struct net_device *net) { struct net_device_context *net_device_obj = netdev_priv(net); - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_driver(net_device_obj->device_obj->device.driver); - struct netvsc_hyperv_driver *net_drv_ctx = - (struct netvsc_hyperv_driver *)driver_ctx; - struct netvsc_driver *net_drv_obj = &net_drv_ctx->drv_obj; + struct netvsc_hyperv_driver *net_drv = + (struct netvsc_hyperv_driver *)drv; + struct netvsc_driver *net_drv_obj = &net_drv->drv_obj; struct hv_netvsc_packet *packet;...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...tart_xmit(struct sk_buff *skb, struct net_device *net) { struct net_device_context *net_device_obj = netdev_priv(net); - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_driver(net_device_obj->device_obj->device.driver); - struct netvsc_hyperv_driver *net_drv_ctx = - (struct netvsc_hyperv_driver *)driver_ctx; - struct netvsc_driver *net_drv_obj = &net_drv_ctx->drv_obj; + struct netvsc_hyperv_driver *net_drv = + (struct netvsc_hyperv_driver *)drv; + struct netvsc_driver *net_drv_obj = &net_drv->drv_obj; struct hv_netvsc_packet *packet;...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...} } static int netvsc_start_xmit(struct sk_buff *skb, 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 net_device_context *net_hyperv_dev = netdev_priv(net); + struct hyperv_driver *drv = + driver_to_hyperv_driver(net_hyperv_dev->hyperv_dev->device.driver); + st...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...} } static int netvsc_start_xmit(struct sk_buff *skb, 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 net_device_context *net_hyperv_dev = netdev_priv(net); + struct hyperv_driver *drv = + driver_to_hyperv_driver(net_hyperv_dev->hyperv_dev->device.driver); + st...