search for: rndis_filter_device_remov

Displaying 20 results from an estimated 35 matches for "rndis_filter_device_remov".

2011 May 23
5
[PATCH 1/6] staging: hv: remove unnecessary code in netvsc_probe().
netif_carrier_off() was called earlier in this function, and there is no other thread access this device yet. The status checking code is not necessary here. Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com> Signed-off-by: Abhishek Kane <v-abkane at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at
2011 May 23
5
[PATCH 1/6] staging: hv: remove unnecessary code in netvsc_probe().
netif_carrier_off() was called earlier in this function, and there is no other thread access this device yet. The status checking code is not necessary here. Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com> Signed-off-by: Abhishek Kane <v-abkane at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at
2018 May 22
0
[PATCH net-next v11 2/5] netvsc: refactor notifier/event handling code to use the failover framework
...ic int netvsc_probe(struct hv_device *dev, goto register_failed; } + net_device_ctx->failover = failover_register(net, &netvsc_failover_ops); + if (IS_ERR(net_device_ctx->failover)) + goto err_failover; + return ret; +err_failover: + unregister_netdev(net); register_failed: rndis_filter_device_remove(dev, nvdev); rndis_failed: @@ -2125,13 +2081,15 @@ static int netvsc_remove(struct hv_device *dev) rtnl_lock(); vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); if (vf_netdev) - netvsc_unregister_vf(vf_netdev); + failover_slave_unregister(vf_netdev); if (nvdev) rndis_filter_de...
2018 Apr 25
0
[PATCH net-next v8 4/4] netvsc: refactor notifier/event handling code to use the failover framework
...static int netvsc_probe(struct hv_device *dev, goto register_failed; } + ret = net_failover_register(net, &netvsc_failover_ops, + &net_device_ctx->failover); + if (ret != 0) + goto err_failover; + return ret; +err_failover: + unregister_netdev(net); register_failed: rndis_filter_device_remove(dev, nvdev); rndis_failed: @@ -2124,13 +2081,15 @@ static int netvsc_remove(struct hv_device *dev) rtnl_lock(); vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); if (vf_netdev) - netvsc_unregister_vf(vf_netdev); + net_failover_slave_unregister(vf_netdev); if (nvdev) rndis_filte...
2018 May 07
0
[PATCH net-next v10 4/4] netvsc: refactor notifier/event handling code to use the failover framework
..._probe(struct hv_device *dev, goto register_failed; } + net_device_ctx->failover = net_failover_register(net, + &netvsc_failover_ops); + if (IS_ERR(net_device_ctx->failover)) + goto err_failover; + return ret; +err_failover: + unregister_netdev(net); register_failed: rndis_filter_device_remove(dev, nvdev); rndis_failed: @@ -2124,13 +2081,15 @@ static int netvsc_remove(struct hv_device *dev) rtnl_lock(); vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); if (vf_netdev) - netvsc_unregister_vf(vf_netdev); + net_failover_slave_unregister(vf_netdev); if (nvdev) rndis_filte...
2018 Apr 20
0
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
...6,15 @@ static int netvsc_probe(struct hv_device *dev, goto register_failed; } + ret = failover_register(net, &netvsc_failover_ops, + &net_device_ctx->failover); + if (ret != 0) + goto err_failover; + return ret; +err_failover: + unregister_netdev(net); register_failed: rndis_filter_device_remove(dev, nvdev); rndis_failed: @@ -2124,13 +2065,15 @@ static int netvsc_remove(struct hv_device *dev) rtnl_lock(); vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); if (vf_netdev) - netvsc_unregister_vf(vf_netdev); + failover_slave_unregister(vf_netdev); if (nvdev) rndis_filter_de...
2018 Apr 10
0
[RFC PATCH net-next v6 4/4] netvsc: refactor notifier/event handling code to use the bypass framework
...tatic int netvsc_probe(struct hv_device *dev, goto register_failed; } + ret = bypass_master_register(net, &netvsc_bypass_ops, + &net_device_ctx->bypass_master); + if (ret != 0) + goto err_bypass; + return ret; +err_bypass: + unregister_netdev(net); register_failed: rndis_filter_device_remove(dev, nvdev); rndis_failed: @@ -2124,13 +2065,15 @@ static int netvsc_remove(struct hv_device *dev) rtnl_lock(); vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); if (vf_netdev) - netvsc_unregister_vf(vf_netdev); + bypass_slave_unregister(vf_netdev); if (nvdev) rndis_filter_devi...
2018 May 24
0
[PATCH net-next v12 2/5] netvsc: refactor notifier/event handling code to use the failover framework
...ic int netvsc_probe(struct hv_device *dev, goto register_failed; } + net_device_ctx->failover = failover_register(net, &netvsc_failover_ops); + if (IS_ERR(net_device_ctx->failover)) + goto err_failover; + return ret; +err_failover: + unregister_netdev(net); register_failed: rndis_filter_device_remove(dev, nvdev); rndis_failed: @@ -2125,13 +2062,15 @@ static int netvsc_remove(struct hv_device *dev) rtnl_lock(); vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev); if (vf_netdev) - netvsc_unregister_vf(vf_netdev); + failover_slave_unregister(vf_netdev); if (nvdev) rndis_filter_de...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -85,14 +85,14 @@ struct rndis_filter_packet { }; -static int rndis_filte_device_add(struct vm_device *dev, +static int rndis_filte_device_add(struct hyperv_device *dev, void *additional_info); -static int rndis_filter_device_remove(struct vm_device *dev); +static int rndis_filter_device_remove(struct hyperv_device *dev); static void rndis_filter_cleanup(struct hv_driver *drv); -static int rndis_filter_send(struct vm_device *dev, +static int rndis_filter_send(struct hyperv_device *dev, struct hv_netvsc_packet *p...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -85,14 +85,14 @@ struct rndis_filter_packet { }; -static int rndis_filte_device_add(struct vm_device *dev, +static int rndis_filte_device_add(struct hyperv_device *dev, void *additional_info); -static int rndis_filter_device_remove(struct vm_device *dev); +static int rndis_filter_device_remove(struct hyperv_device *dev); static void rndis_filter_cleanup(struct hv_driver *drv); -static int rndis_filter_send(struct vm_device *dev, +static int rndis_filter_send(struct hyperv_device *dev, struct hv_netvsc_packet *p...
2011 Feb 26
1
[PATCH 4/6] Staging: hv: Unify the hyperv driver abstractions
..._drv.drv_ctx; diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index b718fa9..a2b5f4d 100644 --- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -90,7 +90,7 @@ static int rndis_filte_device_add(struct hyperv_device *dev, static int rndis_filter_device_remove(struct hyperv_device *dev); -static void rndis_filter_cleanup(struct hv_driver *drv); +static void rndis_filter_cleanup(struct driver_context *drv); static int rndis_filter_send(struct hyperv_device *dev, struct hv_netvsc_packet *pkt); @@ -834,7 +834,7 @@ static int rndis_filter_devi...
2011 Feb 26
1
[PATCH 4/6] Staging: hv: Unify the hyperv driver abstractions
..._drv.drv_ctx; diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index b718fa9..a2b5f4d 100644 --- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -90,7 +90,7 @@ static int rndis_filte_device_add(struct hyperv_device *dev, static int rndis_filter_device_remove(struct hyperv_device *dev); -static void rndis_filter_cleanup(struct hv_driver *drv); +static void rndis_filter_cleanup(struct driver_context *drv); static int rndis_filter_send(struct hyperv_device *dev, struct hv_netvsc_packet *pkt); @@ -834,7 +834,7 @@ static int rndis_filter_devi...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...h" #include "netvsc_api.h" #include "rndis_filter.h" @@ -84,14 +85,14 @@ struct rndis_filter_packet { }; -static int rndis_filte_device_add(struct hv_device *dev, +static int rndis_filte_device_add(struct vm_device *dev, void *additional_info); -static int rndis_filter_device_remove(struct hv_device *dev); +static int rndis_filter_device_remove(struct vm_device *dev); static void rndis_filter_cleanup(struct hv_driver *drv); -static int rndis_filter_send(struct hv_device *dev, +static int rndis_filter_send(struct vm_device *dev, struct hv_netvsc_packet *pkt);...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...h" #include "netvsc_api.h" #include "rndis_filter.h" @@ -84,14 +85,14 @@ struct rndis_filter_packet { }; -static int rndis_filte_device_add(struct hv_device *dev, +static int rndis_filte_device_add(struct vm_device *dev, void *additional_info); -static int rndis_filter_device_remove(struct hv_device *dev); +static int rndis_filter_device_remove(struct vm_device *dev); static void rndis_filter_cleanup(struct hv_driver *drv); -static int rndis_filter_send(struct hv_device *dev, +static int rndis_filter_send(struct vm_device *dev, struct hv_netvsc_packet *pkt);...
2011 Feb 14
2
[PATCH 1/2] staging: hv: Remove dead code from netvsc.c
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com> --- drivers/staging/hv/netvsc.c | 34 ---------------------------------- 1 files changed, 0 insertions(+), 34 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index fa46a7e..8c6d4ae 100644 --- a/drivers/staging/hv/netvsc.c +++
2011 Feb 14
2
[PATCH 1/2] staging: hv: Remove dead code from netvsc.c
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com> --- drivers/staging/hv/netvsc.c | 34 ---------------------------------- 1 files changed, 0 insertions(+), 34 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index fa46a7e..8c6d4ae 100644 --- a/drivers/staging/hv/netvsc.c +++
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...* PAGE_SIZE; diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index a2b5f4d..a8f7927 100644 --- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -90,7 +90,7 @@ static int rndis_filte_device_add(struct hyperv_device *dev, static int rndis_filter_device_remove(struct hyperv_device *dev); -static void rndis_filter_cleanup(struct driver_context *drv); +static void rndis_filter_cleanup(struct hyperv_driver *drv); static int rndis_filter_send(struct hyperv_device *dev, struct hv_netvsc_packet *pkt); @@ -834,7 +834,7 @@ static int rndis_filter_...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...* PAGE_SIZE; diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index a2b5f4d..a8f7927 100644 --- a/drivers/staging/hv/rndis_filter.c +++ b/drivers/staging/hv/rndis_filter.c @@ -90,7 +90,7 @@ static int rndis_filte_device_add(struct hyperv_device *dev, static int rndis_filter_device_remove(struct hyperv_device *dev); -static void rndis_filter_cleanup(struct driver_context *drv); +static void rndis_filter_cleanup(struct hyperv_driver *drv); static int rndis_filter_send(struct hyperv_device *dev, struct hv_netvsc_packet *pkt); @@ -834,7 +834,7 @@ static int rndis_filter_...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...ot; #include "netvsc_api.h" #include "rndis_filter.h" @@ -84,14 +85,14 @@ struct rndis_filter_packet { }; -static int rndis_filte_device_add(struct hv_device *dev, +static int rndis_filte_device_add(struct hyperv_device *dev, void *additional_info); -static int rndis_filter_device_remove(struct hv_device *dev); +static int rndis_filter_device_remove(struct hyperv_device *dev); -static void rndis_filter_cleanup(struct hv_driver *drv); +static void rndis_filter_cleanup(struct hyperv_driver *drv); -static int rndis_filter_send(struct hv_device *dev, +static int rndis_filter_send(...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...ot; #include "netvsc_api.h" #include "rndis_filter.h" @@ -84,14 +85,14 @@ struct rndis_filter_packet { }; -static int rndis_filte_device_add(struct hv_device *dev, +static int rndis_filte_device_add(struct hyperv_device *dev, void *additional_info); -static int rndis_filter_device_remove(struct hv_device *dev); +static int rndis_filter_device_remove(struct hyperv_device *dev); -static void rndis_filter_cleanup(struct hv_driver *drv); +static void rndis_filter_cleanup(struct hyperv_driver *drv); -static int rndis_filter_send(struct hv_device *dev, +static int rndis_filter_send(...