net: add net available in build_state
The build_state callback of lwtunnel doesn't contain the net namespace structure yet. This patch will add it so we can check on specific address configuration at creation time of rpl source routes. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
8610c7c6e3
commit
faee676944
@@ -34,7 +34,7 @@ struct lwtunnel_state {
|
||||
};
|
||||
|
||||
struct lwtunnel_encap_ops {
|
||||
int (*build_state)(struct nlattr *encap,
|
||||
int (*build_state)(struct net *net, struct nlattr *encap,
|
||||
unsigned int family, const void *cfg,
|
||||
struct lwtunnel_state **ts,
|
||||
struct netlink_ext_ack *extack);
|
||||
@@ -113,7 +113,7 @@ int lwtunnel_valid_encap_type(u16 encap_type,
|
||||
struct netlink_ext_ack *extack);
|
||||
int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int len,
|
||||
struct netlink_ext_ack *extack);
|
||||
int lwtunnel_build_state(u16 encap_type,
|
||||
int lwtunnel_build_state(struct net *net, u16 encap_type,
|
||||
struct nlattr *encap,
|
||||
unsigned int family, const void *cfg,
|
||||
struct lwtunnel_state **lws,
|
||||
@@ -209,7 +209,7 @@ static inline int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int len,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int lwtunnel_build_state(u16 encap_type,
|
||||
static inline int lwtunnel_build_state(struct net *net, u16 encap_type,
|
||||
struct nlattr *encap,
|
||||
unsigned int family, const void *cfg,
|
||||
struct lwtunnel_state **lws,
|
||||
|
Reference in New Issue
Block a user