Lines Matching refs:nla
887 static struct gtp_dev *gtp_find_dev(struct net *src_net, struct nlattr *nla[]) in gtp_find_dev() argument
896 if (nla[GTPA_NET_NS_FD]) in gtp_find_dev()
897 net = get_net_ns_by_fd(nla_get_u32(nla[GTPA_NET_NS_FD])); in gtp_find_dev()
905 dev = dev_get_by_index_rcu(net, nla_get_u32(nla[GTPA_LINK])); in gtp_find_dev()
1116 struct nlattr *nla[]) in gtp_find_pdp_by_link() argument
1120 gtp = gtp_find_dev(net, nla); in gtp_find_pdp_by_link()
1124 if (nla[GTPA_MS_ADDRESS]) { in gtp_find_pdp_by_link()
1125 __be32 ip = nla_get_be32(nla[GTPA_MS_ADDRESS]); in gtp_find_pdp_by_link()
1128 } else if (nla[GTPA_VERSION]) { in gtp_find_pdp_by_link()
1129 u32 gtp_version = nla_get_u32(nla[GTPA_VERSION]); in gtp_find_pdp_by_link()
1131 if (gtp_version == GTP_V0 && nla[GTPA_TID]) in gtp_find_pdp_by_link()
1132 return gtp0_pdp_find(gtp, nla_get_u64(nla[GTPA_TID])); in gtp_find_pdp_by_link()
1133 else if (gtp_version == GTP_V1 && nla[GTPA_I_TEI]) in gtp_find_pdp_by_link()
1134 return gtp1_pdp_find(gtp, nla_get_u32(nla[GTPA_I_TEI])); in gtp_find_pdp_by_link()
1140 static struct pdp_ctx *gtp_find_pdp(struct net *net, struct nlattr *nla[]) in gtp_find_pdp() argument
1144 if (nla[GTPA_LINK]) in gtp_find_pdp()
1145 pctx = gtp_find_pdp_by_link(net, nla); in gtp_find_pdp()