Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 235) sorted by relevance

12345678910

/net/core/
Dflow_offload.c170 struct flow_block_cb *flow_block_cb_alloc(flow_setup_cb_t *cb, in flow_block_cb_alloc() argument
180 block_cb->cb = cb; in flow_block_cb_alloc()
199 flow_setup_cb_t *cb, void *cb_ident) in flow_block_cb_lookup() argument
204 if (block_cb->cb == cb && in flow_block_cb_lookup()
231 bool flow_block_cb_is_busy(flow_setup_cb_t *cb, void *cb_ident, in flow_block_cb_is_busy() argument
237 if (block_cb->cb == cb && in flow_block_cb_is_busy()
248 flow_setup_cb_t *cb, in flow_block_cb_setup_simple() argument
262 if (flow_block_cb_is_busy(cb, cb_ident, driver_block_list)) in flow_block_cb_setup_simple()
265 block_cb = flow_block_cb_alloc(cb, cb_ident, cb_priv, NULL); in flow_block_cb_setup_simple()
273 block_cb = flow_block_cb_lookup(f->block, cb, cb_ident); in flow_block_cb_setup_simple()
[all …]
/net/sctp/
Ddiag.c220 struct netlink_callback *cb; member
297 struct netlink_callback *cb = commp->cb; in sctp_sock_dump() local
306 if (cb->args[4] < cb->args[1]) in sctp_sock_dump()
316 if (!cb->args[3] && in sctp_sock_dump()
318 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump()
319 NETLINK_CB(cb->skb).portid, in sctp_sock_dump()
320 cb->nlh->nlmsg_seq, in sctp_sock_dump()
321 NLM_F_MULTI, cb->nlh, in sctp_sock_dump()
326 cb->args[3] = 1; in sctp_sock_dump()
329 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump()
[all …]
/net/strparser/
Dstrparser.c32 return (struct _strp_msg *)((void *)skb->cb + in _strp_msg()
70 strp->cb.abort_parser(strp, err); in strp_parser_err()
213 len = (*strp->cb.parse_msg)(strp, head); in __strp_recv()
301 strp->cb.rcv_msg(strp, head); in __strp_recv()
360 desc.error = strp->cb.read_sock_done(strp, desc.error); in strp_read_sock()
398 strp->cb.lock(strp); in do_strp_work()
410 strp->cb.unlock(strp); in do_strp_work()
425 strp->cb.lock(strp); in strp_msg_timeout()
426 strp->cb.abort_parser(strp, -ETIMEDOUT); in strp_msg_timeout()
427 strp->cb.unlock(strp); in strp_msg_timeout()
[all …]
/net/netlink/
Ddiag.c89 static int __netlink_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, in __netlink_diag_dump() argument
92 struct rhashtable_iter *hti = (void *)cb->args[2]; in __netlink_diag_dump()
102 req = nlmsg_data(cb->nlh); in __netlink_diag_dump()
114 cb->args[2] = (long)hti; in __netlink_diag_dump()
138 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump()
139 cb->nlh->nlmsg_seq, in __netlink_diag_dump()
168 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump()
169 cb->nlh->nlmsg_seq, in __netlink_diag_dump()
180 cb->args[0] = num; in __netlink_diag_dump()
185 static int netlink_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in netlink_diag_dump() argument
[all …]
/net/vmw_vsock/
Ddiag.c48 static int vsock_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in vsock_diag_dump() argument
58 req = nlmsg_data(cb->nlh); in vsock_diag_dump()
62 table = cb->args[0]; in vsock_diag_dump()
63 bucket = cb->args[1]; in vsock_diag_dump()
64 i = last_i = cb->args[2]; in vsock_diag_dump()
86 NETLINK_CB(cb->skb).portid, in vsock_diag_dump()
87 cb->nlh->nlmsg_seq, in vsock_diag_dump()
120 NETLINK_CB(cb->skb).portid, in vsock_diag_dump()
121 cb->nlh->nlmsg_seq, in vsock_diag_dump()
134 cb->args[0] = table; in vsock_diag_dump()
[all …]
/net/qrtr/
Dqrtr.c259 struct qrtr_cb *cb; in qrtr_endpoint_post() local
271 cb = (struct qrtr_cb *)skb->cb; in qrtr_endpoint_post()
283 cb->type = le32_to_cpu(v1->type); in qrtr_endpoint_post()
284 cb->src_node = le32_to_cpu(v1->src_node_id); in qrtr_endpoint_post()
285 cb->src_port = le32_to_cpu(v1->src_port_id); in qrtr_endpoint_post()
286 cb->confirm_rx = !!v1->confirm_rx; in qrtr_endpoint_post()
287 cb->dst_node = le32_to_cpu(v1->dst_node_id); in qrtr_endpoint_post()
288 cb->dst_port = le32_to_cpu(v1->dst_port_id); in qrtr_endpoint_post()
298 cb->type = v2->type; in qrtr_endpoint_post()
299 cb->confirm_rx = !!(v2->flags & QRTR_FLAGS_CONFIRM_RX); in qrtr_endpoint_post()
[all …]
/net/tipc/
Dsocket.h62 int tipc_nl_sk_dump(struct sk_buff *skb, struct netlink_callback *cb);
63 int tipc_nl_publ_dump(struct sk_buff *skb, struct netlink_callback *cb);
64 int tipc_sk_fill_sock_diag(struct sk_buff *skb, struct netlink_callback *cb,
67 int tipc_nl_sk_walk(struct sk_buff *skb, struct netlink_callback *cb,
69 struct netlink_callback *cb,
71 int tipc_dump_start(struct netlink_callback *cb);
72 int __tipc_dump_start(struct netlink_callback *cb, struct net *net);
73 int tipc_dump_done(struct netlink_callback *cb);
Ddiag.c50 struct netlink_callback *cb, in __tipc_add_sock_diag() argument
53 struct tipc_sock_diag_req *req = nlmsg_data(cb->nlh); in __tipc_add_sock_diag()
57 nlh = nlmsg_put_answer(skb, cb, SOCK_DIAG_BY_FAMILY, 0, in __tipc_add_sock_diag()
62 err = tipc_sk_fill_sock_diag(skb, cb, tsk, req->tidiag_states, in __tipc_add_sock_diag()
71 static int tipc_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in tipc_diag_dump() argument
73 return tipc_nl_sk_walk(skb, cb, __tipc_add_sock_diag); in tipc_diag_dump()
/net/ipv4/
Dudp_diag.c17 struct netlink_callback *cb, in sk_diag_dump() argument
25 sk_user_ns(NETLINK_CB(cb->skb).sk), in sk_diag_dump()
26 NETLINK_CB(cb->skb).portid, in sk_diag_dump()
27 cb->nlh->nlmsg_seq, NLM_F_MULTI, cb->nlh, net_admin); in sk_diag_dump()
96 struct netlink_callback *cb, in udp_dump() argument
99 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in udp_dump()
103 s_slot = cb->args[0]; in udp_dump()
104 num = s_num = cb->args[1]; in udp_dump()
135 if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) { in udp_dump()
145 cb->args[0] = slot; in udp_dump()
[all …]
Draw_diag.c133 struct netlink_callback *cb, in sk_diag_dump() argument
141 sk_user_ns(NETLINK_CB(cb->skb).sk), in sk_diag_dump()
142 NETLINK_CB(cb->skb).portid, in sk_diag_dump()
143 cb->nlh->nlmsg_seq, NLM_F_MULTI, in sk_diag_dump()
144 cb->nlh, net_admin); in sk_diag_dump()
147 static void raw_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, in raw_diag_dump() argument
150 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in raw_diag_dump()
159 s_slot = cb->args[0]; in raw_diag_dump()
160 num = s_num = cb->args[1]; in raw_diag_dump()
181 if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) in raw_diag_dump()
[all …]
Dinet_diag.c848 struct netlink_callback *cb, in inet_csk_diag_dump() argument
857 sk_user_ns(NETLINK_CB(cb->skb).sk), in inet_csk_diag_dump()
858 NETLINK_CB(cb->skb).portid, in inet_csk_diag_dump()
859 cb->nlh->nlmsg_seq, NLM_F_MULTI, cb->nlh, in inet_csk_diag_dump()
890 struct netlink_callback *cb, in inet_diag_dump_icsk() argument
893 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in inet_diag_dump_icsk()
901 s_i = cb->args[1]; in inet_diag_dump_icsk()
902 s_num = num = cb->args[2]; in inet_diag_dump_icsk()
904 if (cb->args[0] == 0) { in inet_diag_dump_icsk()
934 if (inet_csk_diag_dump(sk, skb, cb, r, in inet_diag_dump_icsk()
[all …]
/net/nfc/
Dnetlink.c62 struct netlink_callback *cb, int flags) in nfc_genl_send_target() argument
66 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target()
71 genl_dump_check_consistent(cb, hdr); in nfc_genl_send_target()
107 static struct nfc_dev *__get_device_from_cb(struct netlink_callback *cb) in __get_device_from_cb() argument
114 rc = nlmsg_parse_deprecated(cb->nlh, in __get_device_from_cb()
134 struct netlink_callback *cb) in nfc_genl_dump_targets() argument
136 int i = cb->args[0]; in nfc_genl_dump_targets()
137 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets()
141 dev = __get_device_from_cb(cb); in nfc_genl_dump_targets()
145 cb->args[1] = (long) dev; in nfc_genl_dump_targets()
[all …]
/net/netfilter/
Dnfnetlink_acct.c183 nfnl_acct_dump(struct sk_buff *skb, struct netlink_callback *cb) in nfnl_acct_dump() argument
187 const struct nfacct_filter *filter = cb->data; in nfnl_acct_dump()
189 if (cb->args[2]) in nfnl_acct_dump()
192 last = (struct nf_acct *)cb->args[1]; in nfnl_acct_dump()
193 if (cb->args[1]) in nfnl_acct_dump()
194 cb->args[1] = 0; in nfnl_acct_dump()
208 if (nfnl_acct_fill_info(skb, NETLINK_CB(cb->skb).portid, in nfnl_acct_dump()
209 cb->nlh->nlmsg_seq, in nfnl_acct_dump()
210 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_acct_dump()
212 cb->args[1] = (unsigned long)cur; in nfnl_acct_dump()
[all …]
Dnf_conntrack_netlink.c812 static int ctnetlink_done(struct netlink_callback *cb) in ctnetlink_done() argument
814 if (cb->args[1]) in ctnetlink_done()
815 nf_ct_put((struct nf_conn *)cb->args[1]); in ctnetlink_done()
816 kfree(cb->data); in ctnetlink_done()
853 static int ctnetlink_start(struct netlink_callback *cb) in ctnetlink_start() argument
855 const struct nlattr * const *cda = cb->data; in ctnetlink_start()
857 struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in ctnetlink_start()
866 cb->data = filter; in ctnetlink_start()
897 ctnetlink_dump_table(struct sk_buff *skb, struct netlink_callback *cb) in ctnetlink_dump_table() argument
907 last = (struct nf_conn *)cb->args[1]; in ctnetlink_dump_table()
[all …]
/net/batman-adv/
Dbat_v.c298 batadv_v_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb, in batadv_v_neigh_dump() argument
304 int i_hardif_s = cb->args[0]; in batadv_v_neigh_dump()
305 int idx = cb->args[1]; in batadv_v_neigh_dump()
306 int portid = NETLINK_CB(cb->skb).portid; in batadv_v_neigh_dump()
312 cb->nlh->nlmsg_seq, in batadv_v_neigh_dump()
326 cb->nlh->nlmsg_seq, in batadv_v_neigh_dump()
336 cb->args[0] = i_hardif; in batadv_v_neigh_dump()
337 cb->args[1] = idx; in batadv_v_neigh_dump()
577 batadv_v_orig_dump(struct sk_buff *msg, struct netlink_callback *cb, in batadv_v_orig_dump() argument
583 int bucket = cb->args[0]; in batadv_v_orig_dump()
[all …]
Dbridge_loop_avoidance.h45 int batadv_bla_claim_dump(struct sk_buff *msg, struct netlink_callback *cb);
48 int batadv_bla_backbone_dump(struct sk_buff *msg, struct netlink_callback *cb);
59 int batadv_bla_claim_dump(struct sk_buff *msg, struct netlink_callback *cb);
129 struct netlink_callback *cb) in batadv_bla_claim_dump() argument
135 struct netlink_callback *cb) in batadv_bla_backbone_dump() argument
/net/bridge/netfilter/
Dnf_conntrack_bridge.c129 static void br_skb_cb_save(struct sk_buff *skb, struct br_input_skb_cb *cb, in br_skb_cb_save() argument
132 memcpy(cb, skb->cb, sizeof(*cb)); in br_skb_cb_save()
133 memset(skb->cb, 0, inet_skb_parm_size); in br_skb_cb_save()
137 const struct br_input_skb_cb *cb, in br_skb_cb_restore() argument
140 memcpy(skb->cb, cb, sizeof(*cb)); in br_skb_cb_restore()
149 struct br_input_skb_cb cb; in nf_ct_br_defrag4() local
160 br_skb_cb_save(skb, &cb, sizeof(struct inet_skb_parm)); in nf_ct_br_defrag4()
166 br_skb_cb_restore(skb, &cb, IPCB(skb)->frag_max_size); in nf_ct_br_defrag4()
180 struct br_input_skb_cb cb; in nf_ct_br_defrag6() local
188 br_skb_cb_save(skb, &cb, sizeof(struct inet6_skb_parm)); in nf_ct_br_defrag6()
[all …]
/net/ipv6/
Dseg6.c268 static int seg6_genl_dumphmac_start(struct netlink_callback *cb) in seg6_genl_dumphmac_start() argument
270 struct net *net = sock_net(cb->skb->sk); in seg6_genl_dumphmac_start()
275 iter = (struct rhashtable_iter *)cb->args[0]; in seg6_genl_dumphmac_start()
282 cb->args[0] = (long)iter; in seg6_genl_dumphmac_start()
290 static int seg6_genl_dumphmac_done(struct netlink_callback *cb) in seg6_genl_dumphmac_done() argument
292 struct rhashtable_iter *iter = (struct rhashtable_iter *)cb->args[0]; in seg6_genl_dumphmac_done()
301 static int seg6_genl_dumphmac(struct sk_buff *skb, struct netlink_callback *cb) in seg6_genl_dumphmac() argument
303 struct rhashtable_iter *iter = (struct rhashtable_iter *)cb->args[0]; in seg6_genl_dumphmac()
322 NETLINK_CB(cb->skb).portid, in seg6_genl_dumphmac()
323 cb->nlh->nlmsg_seq, in seg6_genl_dumphmac()
[all …]
/net/phonet/
Dpn_netlink.c121 static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb) in getaddr_dumpit() argument
125 int dev_idx = 0, dev_start_idx = cb->args[0]; in getaddr_dumpit()
126 int addr_idx = 0, addr_start_idx = cb->args[1]; in getaddr_dumpit()
144 NETLINK_CB(cb->skb).portid, in getaddr_dumpit()
145 cb->nlh->nlmsg_seq, RTM_NEWADDR) < 0) in getaddr_dumpit()
152 cb->args[0] = dev_idx; in getaddr_dumpit()
153 cb->args[1] = addr_idx; in getaddr_dumpit()
263 static int route_dumpit(struct sk_buff *skb, struct netlink_callback *cb) in route_dumpit() argument
269 for (addr = cb->args[0]; addr < 64; addr++) { in route_dumpit()
275 if (fill_route(skb, dev, addr << 2, NETLINK_CB(cb->skb).portid, in route_dumpit()
[all …]
/net/ieee802154/
Dieee802154.h38 int ieee802154_dump_phy(struct sk_buff *skb, struct netlink_callback *cb);
53 int ieee802154_dump_iface(struct sk_buff *skb, struct netlink_callback *cb);
61 struct netlink_callback *cb);
65 struct netlink_callback *cb);
69 struct netlink_callback *cb);
73 struct netlink_callback *cb);
Dnl802154.c235 struct netlink_callback *cb, in nl802154_prepare_wpan_dev_dump() argument
243 if (!cb->args[0]) { in nl802154_prepare_wpan_dev_dump()
244 err = nlmsg_parse_deprecated(cb->nlh, in nl802154_prepare_wpan_dev_dump()
260 cb->args[0] = (*rdev)->wpan_phy_idx + 1; in nl802154_prepare_wpan_dev_dump()
261 cb->args[1] = (*wpan_dev)->identifier; in nl802154_prepare_wpan_dev_dump()
264 struct wpan_phy *wpan_phy = wpan_phy_idx_to_wpan_phy(cb->args[0] - 1); in nl802154_prepare_wpan_dev_dump()
275 if (tmp->identifier == cb->args[1]) { in nl802154_prepare_wpan_dev_dump()
557 struct netlink_callback *cb, in nl802154_dump_wpan_phy_parse() argument
561 int ret = nlmsg_parse_deprecated(cb->nlh, in nl802154_dump_wpan_phy_parse()
595 nl802154_dump_wpan_phy(struct sk_buff *skb, struct netlink_callback *cb) in nl802154_dump_wpan_phy() argument
[all …]
/net/smc/
Dsmc_diag.c76 struct netlink_callback *cb, in __smc_diag_dump() argument
86 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in __smc_diag_dump()
87 cb->nlh->nlmsg_type, sizeof(*r), NLM_F_MULTI); in __smc_diag_dump()
100 user_ns = sk_user_ns(NETLINK_CB(cb->skb).sk); in __smc_diag_dump()
196 struct netlink_callback *cb) in smc_diag_dump_proto() argument
212 rc = __smc_diag_dump(sk, skb, cb, nlmsg_data(cb->nlh), bc); in smc_diag_dump_proto()
222 static int smc_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in smc_diag_dump() argument
226 rc = smc_diag_dump_proto(&smc_proto, skb, cb); in smc_diag_dump()
228 rc = smc_diag_dump_proto(&smc_proto6, skb, cb); in smc_diag_dump()
/net/netlabel/
Dnetlabel_mgmt.c516 struct netlink_callback *cb) in netlbl_mgmt_listall() argument
519 u32 skip_bkt = cb->args[0]; in netlbl_mgmt_listall()
520 u32 skip_chain = cb->args[1]; in netlbl_mgmt_listall()
522 cb_arg.nl_cb = cb; in netlbl_mgmt_listall()
524 cb_arg.seq = cb->nlh->nlmsg_seq; in netlbl_mgmt_listall()
531 cb->args[0] = skip_bkt; in netlbl_mgmt_listall()
532 cb->args[1] = skip_chain; in netlbl_mgmt_listall()
651 struct netlink_callback *cb, in netlbl_mgmt_protocols_cb() argument
657 data = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in netlbl_mgmt_protocols_cb()
685 struct netlink_callback *cb) in netlbl_mgmt_protocols() argument
[all …]
/net/ieee802154/6lowpan/
Dreassembly.c63 fq_find(struct net *net, const struct lowpan_802154_cb *cb, in fq_find() argument
72 key.tag = cb->d_tag; in fq_find()
73 key.d_size = cb->d_size; in fq_find()
243 struct lowpan_802154_cb *cb) in lowpan_get_cb() argument
254 cb->d_size = (high & LOWPAN_FRAG_DGRAM_SIZE_HIGH_MASK) << in lowpan_get_cb()
257 cb->d_tag = ntohs(d_tag); in lowpan_get_cb()
260 fail |= lowpan_fetch_skb(skb, &cb->d_offset, 1); in lowpan_get_cb()
263 cb->d_offset = 0; in lowpan_get_cb()
265 fail |= cb->d_size < sizeof(struct ipv6hdr); in lowpan_get_cb()
280 struct lowpan_802154_cb *cb = lowpan_802154_cb(skb); in lowpan_frag_rcv() local
[all …]
/net/mac802154/
Diface.c332 const struct ieee802154_mac_cb *cb) in mac802154_set_header_security() argument
339 if (!params.enabled && cb->secen_override && cb->secen) in mac802154_set_header_security()
342 (cb->secen_override && !cb->secen) || in mac802154_set_header_security()
345 if (cb->seclevel_override && !cb->seclevel) in mac802154_set_header_security()
348 level = cb->seclevel_override ? cb->seclevel : params.out_level; in mac802154_set_header_security()
371 struct ieee802154_mac_cb *cb = mac_cb(skb); in ieee802154_header_create() local
378 hdr.fc.type = cb->type; in ieee802154_header_create()
379 hdr.fc.security_enabled = cb->secen; in ieee802154_header_create()
380 hdr.fc.ack_request = cb->ackreq; in ieee802154_header_create()
383 if (mac802154_set_header_security(sdata, &hdr, cb) < 0) in ieee802154_header_create()
[all …]

12345678910