Lines Matching refs:nla
861 static struct gtp_dev *gtp_find_dev(struct net *src_net, struct nlattr *nla[]) in gtp_find_dev() argument
870 if (nla[GTPA_NET_NS_FD]) in gtp_find_dev()
871 net = get_net_ns_by_fd(nla_get_u32(nla[GTPA_NET_NS_FD])); in gtp_find_dev()
879 dev = dev_get_by_index_rcu(net, nla_get_u32(nla[GTPA_LINK])); in gtp_find_dev()
1069 struct nlattr *nla[]) in gtp_find_pdp_by_link() argument
1073 gtp = gtp_find_dev(net, nla); in gtp_find_pdp_by_link()
1077 if (nla[GTPA_MS_ADDRESS]) { in gtp_find_pdp_by_link()
1078 __be32 ip = nla_get_be32(nla[GTPA_MS_ADDRESS]); in gtp_find_pdp_by_link()
1081 } else if (nla[GTPA_VERSION]) { in gtp_find_pdp_by_link()
1082 u32 gtp_version = nla_get_u32(nla[GTPA_VERSION]); in gtp_find_pdp_by_link()
1084 if (gtp_version == GTP_V0 && nla[GTPA_TID]) in gtp_find_pdp_by_link()
1085 return gtp0_pdp_find(gtp, nla_get_u64(nla[GTPA_TID])); in gtp_find_pdp_by_link()
1086 else if (gtp_version == GTP_V1 && nla[GTPA_I_TEI]) in gtp_find_pdp_by_link()
1087 return gtp1_pdp_find(gtp, nla_get_u32(nla[GTPA_I_TEI])); in gtp_find_pdp_by_link()
1093 static struct pdp_ctx *gtp_find_pdp(struct net *net, struct nlattr *nla[]) in gtp_find_pdp() argument
1097 if (nla[GTPA_LINK]) in gtp_find_pdp()
1098 pctx = gtp_find_pdp_by_link(net, nla); in gtp_find_pdp()