Lines Matching refs:net_cb
963 struct rtnl_net_dump_cb *net_cb = (struct rtnl_net_dump_cb *)data; in rtnl_net_dumpid_one() local
966 if (net_cb->idx < net_cb->s_idx) in rtnl_net_dumpid_one()
969 net_cb->fillargs.nsid = id; in rtnl_net_dumpid_one()
970 if (net_cb->fillargs.add_ref) in rtnl_net_dumpid_one()
971 net_cb->fillargs.ref_nsid = __peernet2id(net_cb->ref_net, peer); in rtnl_net_dumpid_one()
972 ret = rtnl_net_fill(net_cb->skb, &net_cb->fillargs); in rtnl_net_dumpid_one()
977 net_cb->idx++; in rtnl_net_dumpid_one()
982 struct rtnl_net_dump_cb *net_cb, in rtnl_valid_dump_net_req() argument
1009 net_cb->fillargs.add_ref = true; in rtnl_valid_dump_net_req()
1010 net_cb->ref_net = net_cb->tgt_net; in rtnl_valid_dump_net_req()
1011 net_cb->tgt_net = net; in rtnl_valid_dump_net_req()
1025 struct rtnl_net_dump_cb net_cb = { in rtnl_net_dumpid() local
1040 err = rtnl_valid_dump_net_req(cb->nlh, skb->sk, &net_cb, cb); in rtnl_net_dumpid()
1046 idr_for_each(&net_cb.tgt_net->netns_ids, rtnl_net_dumpid_one, &net_cb); in rtnl_net_dumpid()
1049 cb->args[0] = net_cb.idx; in rtnl_net_dumpid()
1051 if (net_cb.fillargs.add_ref) in rtnl_net_dumpid()
1052 put_net(net_cb.tgt_net); in rtnl_net_dumpid()