sit: add net device refcount tracking to ip_tunnel
Note that other ip_tunnel users do not seem to hold a reference on tunnel->dev. Probably needs some investigations. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
fb67510ba9
commit
c0fd407a06
@@ -104,7 +104,10 @@ struct metadata_dst;
|
||||
struct ip_tunnel {
|
||||
struct ip_tunnel __rcu *next;
|
||||
struct hlist_node hash_node;
|
||||
|
||||
struct net_device *dev;
|
||||
netdevice_tracker dev_tracker;
|
||||
|
||||
struct net *net; /* netns for packet i/o */
|
||||
|
||||
unsigned long err_time; /* Time when the last ICMP error
|
||||
|
||||
Reference in New Issue
Block a user