Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-05-10 14:13:58 +0200
committerJiri Slaby <jslaby@suse.cz>2019-05-16 08:28:00 +0200
commitedcec09327df6815bac3b7d956dbd10063d535e9 (patch)
tree36c674e33da46b7c53445e6738d38ed210e1ca6b
parentbb26a26dd8f76917cae6b4705ef62c3f0d255b05 (diff)
vxlan: Don't call gro_cells_destroy() before device is
unregistered (networking-stable-19_03_28). suse-commit: 76e5462b087e5c3cfcf8a866f812d878f795f0a3
-rw-r--r--drivers/net/vxlan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 3f2296bb327b..7c67b6af5939 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -3645,10 +3645,8 @@ static void __net_exit vxlan_exit_net(struct net *net)
/* If vxlan->dev is in the same netns, it has already been added
* to the list by the previous loop.
*/
- if (!net_eq(dev_net(vxlan->dev), net)) {
- gro_cells_destroy(&vxlan->gro_cells);
+ if (!net_eq(dev_net(vxlan->dev), net))
unregister_netdevice_queue(vxlan->dev, &list);
- }
}
unregister_netdevice_many(&list);