History

xfrm: add net device refcount tracker to struct xfrm_state_offload

Eric Dumazet committed 4 years ago

Commit e1b539b1 parent 3d204082 files · +4 −2Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/net/xfrm.h+2−1
@@ -128,6 +128,7 @@ struct xfrm_state_walk { · 127 unmodified lines
128128
129129 struct xfrm_state_offload {
130130 struct net_device *dev;
131+ netdevice_tracker dev_tracker;
131132 struct net_device *real_dev;
132133 unsigned long offload_handle;
133134 unsigned int num_exthdrs;
@@ -1913,7 +1914,7 @@ static inline void xfrm_dev_state_free(struct xfrm_state *x) · 1779 unmodified lines
19131914 if (dev->xfrmdev_ops->xdo_dev_state_free)
19141915 dev->xfrmdev_ops->xdo_dev_state_free(x);
19151916 xso->dev = NULL;
1916− dev_put(dev);
1917+ dev_put_track(dev, &xso->dev_tracker);
19171918 }
19181919 }
19191920 #else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t