summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobert Shearman <rshearma@brocade.com>2017-01-24 16:26:47 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-04 09:47:11 +0100
commit89c2588627c20cf9d791a9bb1523646b101a59b1 (patch)
tree752cfc11e90dfafa34e87d3f70d04d7343ee0a0b /include
parent087c2ecb21afddaeaa9105ac7df6015eb1e2ce6a (diff)
net: Specify the owning module for lwtunnel ops
[ Upstream commit 88ff7334f25909802140e690c0e16433e485b0a0 ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/lwtunnel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/lwtunnel.h b/include/net/lwtunnel.h
index 95581ca69f0f..3e0a7a942a0e 100644
--- a/include/net/lwtunnel.h
+++ b/include/net/lwtunnel.h
@@ -43,6 +43,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