Home
last modified time | relevance | path

Searched refs:dump_ctx (Results 1 – 2 of 2) sorted by relevance

/net/devlink/
Ddpipe.c465 int devlink_dpipe_entry_ctx_prepare(struct devlink_dpipe_dump_ctx *dump_ctx) in devlink_dpipe_entry_ctx_prepare() argument
470 err = devlink_dpipe_send_and_alloc_skb(&dump_ctx->skb, in devlink_dpipe_entry_ctx_prepare()
471 dump_ctx->info); in devlink_dpipe_entry_ctx_prepare()
475 dump_ctx->hdr = genlmsg_put(dump_ctx->skb, in devlink_dpipe_entry_ctx_prepare()
476 dump_ctx->info->snd_portid, in devlink_dpipe_entry_ctx_prepare()
477 dump_ctx->info->snd_seq, in devlink_dpipe_entry_ctx_prepare()
479 dump_ctx->cmd); in devlink_dpipe_entry_ctx_prepare()
480 if (!dump_ctx->hdr) in devlink_dpipe_entry_ctx_prepare()
483 devlink = dump_ctx->info->user_ptr[0]; in devlink_dpipe_entry_ctx_prepare()
484 if (devlink_nl_put_handle(dump_ctx->skb, devlink)) in devlink_dpipe_entry_ctx_prepare()
[all …]
/net/netfilter/
Dnf_tables_api.c5784 struct nft_set_dump_ctx *dump_ctx = cb->data; in nf_tables_dump_set() local
5802 if (dump_ctx->ctx.family != NFPROTO_UNSPEC && in nf_tables_dump_set()
5803 dump_ctx->ctx.family != table->family) in nf_tables_dump_set()
5806 if (table != dump_ctx->ctx.table) in nf_tables_dump_set()
5810 if (set == dump_ctx->set) { in nf_tables_dump_set()
5852 set->ops->walk(&dump_ctx->ctx, set, &args.iter); in nf_tables_dump_set()
5881 struct nft_set_dump_ctx *dump_ctx = cb->data; in nf_tables_dump_set_start() local
5883 cb->data = kmemdup(dump_ctx, sizeof(*dump_ctx), GFP_ATOMIC); in nf_tables_dump_set_start()
6118 struct nft_set_dump_ctx dump_ctx = { in nf_tables_getsetelem() local
6123 c.data = &dump_ctx; in nf_tables_getsetelem()