Lines Matching refs:net_cb
988 struct rtnl_net_dump_cb *net_cb = (struct rtnl_net_dump_cb *)data; in rtnl_net_dumpid_one() local
991 if (net_cb->idx < net_cb->s_idx) in rtnl_net_dumpid_one()
994 net_cb->fillargs.nsid = id; in rtnl_net_dumpid_one()
995 if (net_cb->fillargs.add_ref) in rtnl_net_dumpid_one()
996 net_cb->fillargs.ref_nsid = __peernet2id(net_cb->ref_net, peer); in rtnl_net_dumpid_one()
997 ret = rtnl_net_fill(net_cb->skb, &net_cb->fillargs); in rtnl_net_dumpid_one()
1002 net_cb->idx++; in rtnl_net_dumpid_one()
1007 struct rtnl_net_dump_cb *net_cb, in rtnl_valid_dump_net_req() argument
1034 net_cb->fillargs.add_ref = true; in rtnl_valid_dump_net_req()
1035 net_cb->ref_net = net_cb->tgt_net; in rtnl_valid_dump_net_req()
1036 net_cb->tgt_net = net; in rtnl_valid_dump_net_req()
1050 struct rtnl_net_dump_cb net_cb = { in rtnl_net_dumpid() local
1065 err = rtnl_valid_dump_net_req(cb->nlh, skb->sk, &net_cb, cb); in rtnl_net_dumpid()
1071 idr_for_each(&net_cb.tgt_net->netns_ids, rtnl_net_dumpid_one, &net_cb); in rtnl_net_dumpid()
1074 cb->args[0] = net_cb.idx; in rtnl_net_dumpid()
1076 if (net_cb.fillargs.add_ref) in rtnl_net_dumpid()
1077 put_net(net_cb.tgt_net); in rtnl_net_dumpid()