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
128 128
129struct xfrm_state_offload {129struct xfrm_state_offload {
130 struct net_device *dev;130 struct net_device *dev;
131 netdevice_tracker dev_tracker;
131 struct net_device *real_dev;132 struct net_device *real_dev;
132 unsigned long offload_handle;133 unsigned long offload_handle;
133 unsigned int num_exthdrs;134 unsigned int num_exthdrs;
@@ -1913,7 +1914,7 @@ static inline void xfrm_dev_state_free(struct xfrm_state *x) · 1779 unmodified lines
1913 if (dev->xfrmdev_ops->xdo_dev_state_free)1914 if (dev->xfrmdev_ops->xdo_dev_state_free)
1914 dev->xfrmdev_ops->xdo_dev_state_free(x);1915 dev->xfrmdev_ops->xdo_dev_state_free(x);
1915 xso->dev = NULL;1916 xso->dev = NULL;
1916 dev_put(dev);1917 dev_put_track(dev, &xso->dev_tracker);
1917 }1918 }
1918}1919}
1919#else1920#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