Lines Matching refs:encap_type
31 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type)
36 switch (encap_type) {
93 unsigned int encap_type)
97 if (encap_type == LWTUNNEL_ENCAP_NONE ||
98 encap_type > LWTUNNEL_ENCAP_MAX)
102 &lwtun_encaps[encap_type],
111 int lwtunnel_build_state(struct net *net, u16 encap_type,
120 if (encap_type == LWTUNNEL_ENCAP_NONE ||
121 encap_type > LWTUNNEL_ENCAP_MAX) {
129 ops = rcu_dereference(lwtun_encaps[encap_type]);
150 int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack)
155 if (encap_type == LWTUNNEL_ENCAP_NONE ||
156 encap_type > LWTUNNEL_ENCAP_MAX) {
162 ops = rcu_dereference(lwtun_encaps[encap_type]);
166 const char *encap_type_str = lwtunnel_encap_str(encap_type);
174 ops = rcu_dereference(lwtun_encaps[encap_type]);
193 u16 encap_type;
207 encap_type = nla_get_u16(nla_entype);
209 if (lwtunnel_valid_encap_type(encap_type,