search for: virtio_net_driver_exit

Displaying 20 results from an estimated 32 matches for "virtio_net_driver_exit".

2017 Jul 24
2
[PATCH] virtio-net: fix module unloading
...+- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 99a26a9efec1..f41ab0ea942a 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -2743,9 +2743,9 @@ module_init(virtio_net_driver_init); static __exit void virtio_net_driver_exit(void) { + unregister_virtio_driver(&virtio_net_driver); cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); cpuhp_remove_multi_state(virtionet_online); - unregister_virtio_driver(&virtio_net_driver); } module_exit(virtio_net_driver_exit); -- 2.13.3
2017 Jul 24
2
[PATCH] virtio-net: fix module unloading
...+- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 99a26a9efec1..f41ab0ea942a 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -2743,9 +2743,9 @@ module_init(virtio_net_driver_init); static __exit void virtio_net_driver_exit(void) { + unregister_virtio_driver(&virtio_net_driver); cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); cpuhp_remove_multi_state(virtionet_online); - unregister_virtio_driver(&virtio_net_driver); } module_exit(virtio_net_driver_exit); -- 2.13.3
2013 Dec 05
9
[PATCH 0/2] virtio-net: Fix two bugs on unloading the module
They can be easy to reproduce, if you try to unload virtio-net Andrey Vagin (2): virtio-net: determine type of bufs correctly virtio: delete napi objects from netdev before releasing memory drivers/net/virtio_net.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Cc: Rusty Russell <rusty at rustcorp.com.au> Cc: "Michael S. Tsirkin" <mst at redhat.com>
2013 Dec 05
9
[PATCH 0/2] virtio-net: Fix two bugs on unloading the module
They can be easy to reproduce, if you try to unload virtio-net Andrey Vagin (2): virtio-net: determine type of bufs correctly virtio: delete napi objects from netdev before releasing memory drivers/net/virtio_net.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Cc: Rusty Russell <rusty at rustcorp.com.au> Cc: "Michael S. Tsirkin" <mst at redhat.com>
2017 Jul 26
0
[PATCH] virtio-net: fix module unloading
...letion(-) > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 99a26a9efec1..f41ab0ea942a 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -2743,9 +2743,9 @@ module_init(virtio_net_driver_init); > > static __exit void virtio_net_driver_exit(void) > { > + unregister_virtio_driver(&virtio_net_driver); > cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); > cpuhp_remove_multi_state(virtionet_online); > - unregister_virtio_driver(&virtio_net_driver); > } > module_exit(virtio_net_driver_exit); > A...
2018 Jan 26
1
[RFC PATCH net-next v2 2/2] virtio_net: Extend virtio to use VF datapath when available
...; > if (ret) > goto err_virtio; > + > + register_netdevice_notifier(&virtio_netdev_notifier); > return 0; > err_virtio: > cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); > @@ -2889,6 +3191,7 @@ module_init(virtio_net_driver_init); > > static __exit void virtio_net_driver_exit(void) > { > + unregister_netdevice_notifier(&virtio_netdev_notifier); > unregister_virtio_driver(&virtio_net_driver); > cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); > cpuhp_remove_multi_state(virtionet_online); I have a question here: what if PT device driver module...
2016 Aug 12
0
[PATCH 6/6] net: virtio-net: Convert to hotplug state machine
...= register_virtio_driver(&virtio_net_driver); + if (ret) + goto err_virtio; + return 0; +err_virtio: + cpuhp_remove_state_nocalls(CPUHP_VIRT_NET_DEAD); +err_dead: + cpuhp_remove_state_nocalls(virtionet_online); +out: + return ret; +} +module_init(virtio_net_driver_init); + +static __exit void virtio_net_driver_exit(void) +{ + cpuhp_remove_state_nocalls(CPUHP_VIRT_NET_DEAD); + cpuhp_remove_state_nocalls(virtionet_online); + unregister_virtio_driver(&virtio_net_driver); +} +module_exit(virtio_net_driver_exit); MODULE_DEVICE_TABLE(virtio, id_table); MODULE_DESCRIPTION("Virtio network driver");...
2016 Aug 12
0
[PATCH 6/6] net: virtio-net: Convert to hotplug state machine
...= register_virtio_driver(&virtio_net_driver); + if (ret) + goto err_virtio; + return 0; +err_virtio: + cpuhp_remove_state_nocalls(CPUHP_VIRT_NET_DEAD); +err_dead: + cpuhp_remove_state_nocalls(virtionet_online); +out: + return ret; +} +module_init(virtio_net_driver_init); + +static __exit void virtio_net_driver_exit(void) +{ + cpuhp_remove_state_nocalls(CPUHP_VIRT_NET_DEAD); + cpuhp_remove_state_nocalls(virtionet_online); + unregister_virtio_driver(&virtio_net_driver); +} +module_exit(virtio_net_driver_exit); MODULE_DEVICE_TABLE(virtio, id_table); MODULE_DESCRIPTION("Virtio network driver");...
2013 Dec 06
1
[PATCH 2/2] virtio: delete napi structures from netdev before releasing memory
...ase_driver+0x7f/0xf0 > [<ffffffff813f6ca0>] driver_detach+0xc0/0xd0 > [<ffffffff813f5f28>] bus_remove_driver+0x58/0xd0 > [<ffffffff813f72ec>] driver_unregister+0x2c/0x50 > [<ffffffff813ae65e>] unregister_virtio_driver+0xe/0x10 > [<ffffffffa0036942>] virtio_net_driver_exit+0x10/0x6ce [virtio_net] > [<ffffffff810d7cf2>] SyS_delete_module+0x172/0x220 > [<ffffffff810a732d>] ? trace_hardirqs_on+0xd/0x10 > [<ffffffff810f5d4c>] ? __audit_syscall_entry+0x9c/0xf0 > [<ffffffff81677f69>] system_call_fastpath+0x16/0x1b > Code: 00 00 55...
2013 Dec 06
1
[PATCH 2/2] virtio: delete napi structures from netdev before releasing memory
...ase_driver+0x7f/0xf0 > [<ffffffff813f6ca0>] driver_detach+0xc0/0xd0 > [<ffffffff813f5f28>] bus_remove_driver+0x58/0xd0 > [<ffffffff813f72ec>] driver_unregister+0x2c/0x50 > [<ffffffff813ae65e>] unregister_virtio_driver+0xe/0x10 > [<ffffffffa0036942>] virtio_net_driver_exit+0x10/0x6ce [virtio_net] > [<ffffffff810d7cf2>] SyS_delete_module+0x172/0x220 > [<ffffffff810a732d>] ? trace_hardirqs_on+0xd/0x10 > [<ffffffff810f5d4c>] ? __audit_syscall_entry+0x9c/0xf0 > [<ffffffff81677f69>] system_call_fastpath+0x16/0x1b > Code: 00 00 55...
2013 Dec 06
1
[PATCH 1/2] virtio-net: determine type of bufs correctly
...ase_driver+0x7f/0xf0 > [<ffffffff813f6c80>] driver_detach+0xc0/0xd0 > [<ffffffff813f5f08>] bus_remove_driver+0x58/0xd0 > [<ffffffff813f72cc>] driver_unregister+0x2c/0x50 > [<ffffffff813ae63e>] unregister_virtio_driver+0xe/0x10 > [<ffffffffa0036852>] virtio_net_driver_exit+0x10/0x7be [virtio_net] > [<ffffffff810d7cf2>] SyS_delete_module+0x172/0x220 > [<ffffffff810a732d>] ? trace_hardirqs_on+0xd/0x10 > [<ffffffff810f5d4c>] ? __audit_syscall_entry+0x9c/0xf0 > [<ffffffff81677f69>] system_call_fastpath+0x16/0x1b > Code: c0 74 55...
2013 Dec 06
1
[PATCH 1/2] virtio-net: determine type of bufs correctly
...ase_driver+0x7f/0xf0 > [<ffffffff813f6c80>] driver_detach+0xc0/0xd0 > [<ffffffff813f5f08>] bus_remove_driver+0x58/0xd0 > [<ffffffff813f72cc>] driver_unregister+0x2c/0x50 > [<ffffffff813ae63e>] unregister_virtio_driver+0xe/0x10 > [<ffffffffa0036852>] virtio_net_driver_exit+0x10/0x7be [virtio_net] > [<ffffffff810d7cf2>] SyS_delete_module+0x172/0x220 > [<ffffffff810a732d>] ? trace_hardirqs_on+0xd/0x10 > [<ffffffff810f5d4c>] ? __audit_syscall_entry+0x9c/0xf0 > [<ffffffff81677f69>] system_call_fastpath+0x16/0x1b > Code: c0 74 55...
2018 Apr 06
0
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...ti_state(CPUHP_VIRT_NET_DEAD); >> err_dead: >> cpuhp_remove_multi_state(virtionet_online); >> out: >> + bypass_unregister_driver(virtnet_bypass); >> return ret; >> } >> module_init(virtio_net_driver_init); >> @@ -3025,6 +3634,7 @@ static __exit void virtio_net_driver_exit(void) >> unregister_virtio_driver(&virtio_net_driver); >> cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); >> cpuhp_remove_multi_state(virtionet_online); >> + bypass_unregister_driver(virtnet_bypass); >> } >> module_exit(virtio_net_driver_exit); >> &gt...
2013 Dec 05
0
[PATCH 2/2] virtio: delete napi structures from netdev before releasing memory
...3f62ef>] __device_release_driver+0x7f/0xf0 [<ffffffff813f6ca0>] driver_detach+0xc0/0xd0 [<ffffffff813f5f28>] bus_remove_driver+0x58/0xd0 [<ffffffff813f72ec>] driver_unregister+0x2c/0x50 [<ffffffff813ae65e>] unregister_virtio_driver+0xe/0x10 [<ffffffffa0036942>] virtio_net_driver_exit+0x10/0x6ce [virtio_net] [<ffffffff810d7cf2>] SyS_delete_module+0x172/0x220 [<ffffffff810a732d>] ? trace_hardirqs_on+0xd/0x10 [<ffffffff810f5d4c>] ? __audit_syscall_entry+0x9c/0xf0 [<ffffffff81677f69>] system_call_fastpath+0x16/0x1b Code: 00 00 55 48 8b 17 48 b9 00 01 10...
2018 Apr 06
2
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...err_virtio: > cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); > err_dead: > cpuhp_remove_multi_state(virtionet_online); > out: >+ bypass_unregister_driver(virtnet_bypass); > return ret; > } > module_init(virtio_net_driver_init); >@@ -3025,6 +3634,7 @@ static __exit void virtio_net_driver_exit(void) > unregister_virtio_driver(&virtio_net_driver); > cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); > cpuhp_remove_multi_state(virtionet_online); >+ bypass_unregister_driver(virtnet_bypass); > } > module_exit(virtio_net_driver_exit); > >-- >2.14.3 >
2018 Apr 06
2
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...err_virtio: > cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); > err_dead: > cpuhp_remove_multi_state(virtionet_online); > out: >+ bypass_unregister_driver(virtnet_bypass); > return ret; > } > module_init(virtio_net_driver_init); >@@ -3025,6 +3634,7 @@ static __exit void virtio_net_driver_exit(void) > unregister_virtio_driver(&virtio_net_driver); > cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); > cpuhp_remove_multi_state(virtionet_online); >+ bypass_unregister_driver(virtnet_bypass); > } > module_exit(virtio_net_driver_exit); > >-- >2.14.3 >
2013 Dec 05
0
[PATCH 1/2] virtio-net: determine type of bufs correctly
...ase_driver+0x7f/0xf0 > [<ffffffff813f6c80>] driver_detach+0xc0/0xd0 > [<ffffffff813f5f08>] bus_remove_driver+0x58/0xd0 > [<ffffffff813f72cc>] driver_unregister+0x2c/0x50 > [<ffffffff813ae63e>] unregister_virtio_driver+0xe/0x10 > [<ffffffffa0036852>] virtio_net_driver_exit+0x10/0x7be [virtio_net] > [<ffffffff810d7cf2>] SyS_delete_module+0x172/0x220 > [<ffffffff810a732d>] ? trace_hardirqs_on+0xd/0x10 > [<ffffffff810f5d4c>] ? __audit_syscall_entry+0x9c/0xf0 > [<ffffffff81677f69>] system_call_fastpath+0x16/0x1b > Code: c0 74 55...
2013 Dec 05
1
[PATCH 1/2] virtio-net: determine type of bufs correctly
...3f62cf>] __device_release_driver+0x7f/0xf0 [<ffffffff813f6c80>] driver_detach+0xc0/0xd0 [<ffffffff813f5f08>] bus_remove_driver+0x58/0xd0 [<ffffffff813f72cc>] driver_unregister+0x2c/0x50 [<ffffffff813ae63e>] unregister_virtio_driver+0xe/0x10 [<ffffffffa0036852>] virtio_net_driver_exit+0x10/0x7be [virtio_net] [<ffffffff810d7cf2>] SyS_delete_module+0x172/0x220 [<ffffffff810a732d>] ? trace_hardirqs_on+0xd/0x10 [<ffffffff810f5d4c>] ? __audit_syscall_entry+0x9c/0xf0 [<ffffffff81677f69>] system_call_fastpath+0x16/0x1b Code: c0 74 55 0f 1f 44 00 00 80 7b 30...
2018 Apr 05
0
[RFC PATCH net-next v5 3/4] virtio_net: Extend virtio to use VF datapath when available
...goto err_virtio; + return 0; err_virtio: cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); err_dead: cpuhp_remove_multi_state(virtionet_online); out: + bypass_unregister_driver(virtnet_bypass); return ret; } module_init(virtio_net_driver_init); @@ -3025,6 +3634,7 @@ static __exit void virtio_net_driver_exit(void) unregister_virtio_driver(&virtio_net_driver); cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD); cpuhp_remove_multi_state(virtionet_online); + bypass_unregister_driver(virtnet_bypass); } module_exit(virtio_net_driver_exit); -- 2.14.3
2018 Jan 12
7
[RFC PATCH net-next v2 0/2] Enable virtio to act as a backup for a passthru device
This patch series extends virtio_net to take over VF datapath by simulating a transparent bond without creating any additional netdev. I understand that there are some comments suggesting an alternate model that is based on 3 driver model(virtio_net, VF driver, a new driver virt_bond that acts as a master to virtio_net and VF). Would like to get some feedback on the right way to solve the live