diff options
author | Robert Shearman <rshearma@brocade.com> | 2017-01-24 17:26:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-24 22:21:36 +0100 |
commit | 88ff7334f25909802140e690c0e16433e485b0a0 (patch) | |
tree | acd6fa564ab6818a88aec7d60c65d8d164d09e08 /include | |
parent | Merge branch 'tipc-topology-fixes' (diff) | |
download | linux-88ff7334f25909802140e690c0e16433e485b0a0.tar.xz linux-88ff7334f25909802140e690c0e16433e485b0a0.zip |
net: Specify the owning module for lwtunnel ops
Modules implementing lwtunnel ops should not be allowed to unload
while there is state alive using those ops, so specify the owning
module for all lwtunnel ops.
Signed-off-by: Robert Shearman <rshearma@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/lwtunnel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/lwtunnel.h b/include/net/lwtunnel.h index 0b585f1fd340..73dd87647460 100644 --- a/include/net/lwtunnel.h +++ b/include/net/lwtunnel.h @@ -44,6 +44,8 @@ struct lwtunnel_encap_ops { int (*get_encap_size)(struct lwtunnel_state *lwtstate); int (*cmp_encap)(struct lwtunnel_state *a, struct lwtunnel_state *b); int (*xmit)(struct sk_buff *skb); + + struct module *owner; }; #ifdef CONFIG_LWTUNNEL |