Lines Matching refs:nla
871 static struct gtp_dev *gtp_find_dev(struct net *src_net, struct nlattr *nla[]) in gtp_find_dev() argument
880 if (nla[GTPA_NET_NS_FD]) in gtp_find_dev()
881 net = get_net_ns_by_fd(nla_get_u32(nla[GTPA_NET_NS_FD])); in gtp_find_dev()
889 dev = dev_get_by_index_rcu(net, nla_get_u32(nla[GTPA_LINK])); in gtp_find_dev()
1100 struct nlattr *nla[]) in gtp_find_pdp_by_link() argument
1104 gtp = gtp_find_dev(net, nla); in gtp_find_pdp_by_link()
1108 if (nla[GTPA_MS_ADDRESS]) { in gtp_find_pdp_by_link()
1109 __be32 ip = nla_get_be32(nla[GTPA_MS_ADDRESS]); in gtp_find_pdp_by_link()
1112 } else if (nla[GTPA_VERSION]) { in gtp_find_pdp_by_link()
1113 u32 gtp_version = nla_get_u32(nla[GTPA_VERSION]); in gtp_find_pdp_by_link()
1115 if (gtp_version == GTP_V0 && nla[GTPA_TID]) in gtp_find_pdp_by_link()
1116 return gtp0_pdp_find(gtp, nla_get_u64(nla[GTPA_TID])); in gtp_find_pdp_by_link()
1117 else if (gtp_version == GTP_V1 && nla[GTPA_I_TEI]) in gtp_find_pdp_by_link()
1118 return gtp1_pdp_find(gtp, nla_get_u32(nla[GTPA_I_TEI])); in gtp_find_pdp_by_link()
1124 static struct pdp_ctx *gtp_find_pdp(struct net *net, struct nlattr *nla[]) in gtp_find_pdp() argument
1128 if (nla[GTPA_LINK]) in gtp_find_pdp()
1129 pctx = gtp_find_pdp_by_link(net, nla); in gtp_find_pdp()