Lines Matching refs:ctx
29 static int write_htab(unsigned int i, struct update_ctx *ctx, unsigned int flags)
31 bpf_map_update_elem(&htab, &ctx->from, zeroed_value, flags);
32 ctx->from += ctx->step;
37 static int overwrite_htab(unsigned int i, struct update_ctx *ctx)
39 return write_htab(i, ctx, 0);
42 static int newwrite_htab(unsigned int i, struct update_ctx *ctx)
44 return write_htab(i, ctx, BPF_NOEXIST);
47 static int del_htab(unsigned int i, struct update_ctx *ctx)
49 bpf_map_delete_elem(&htab, &ctx->from);
50 ctx->from += ctx->step;
56 int overwrite(void *ctx)
68 int batch_add_batch_del(void *ctx)
84 int add_only(void *ctx)
96 int del_only(void *ctx)