Skip to content

Commit 1b5e8c8

Browse files
committed
basoc04: rename record_xdp_stats_action to xdp_stats_record_action
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
1 parent 67db25c commit 1b5e8c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

basic04-pinning-maps/xdp_prog_kern.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct bpf_map_def SEC("maps") xdp_stats_map = {
2323
#endif
2424

2525
static __always_inline
26-
__u32 record_xdp_stats_action(struct xdp_md *ctx, __u32 action)
26+
__u32 xdp_stats_record_action(struct xdp_md *ctx, __u32 action)
2727
{
2828
void *data_end = (void *)(long)ctx->data_end;
2929
void *data = (void *)(long)ctx->data;
@@ -54,23 +54,23 @@ int xdp_pass_func(struct xdp_md *ctx)
5454
{
5555
__u32 action = XDP_PASS; /* XDP_PASS = 2 */
5656

57-
return record_xdp_stats_action(ctx, action);
57+
return xdp_stats_record_action(ctx, action);
5858
}
5959

6060
SEC("xdp_drop")
6161
int xdp_drop_func(struct xdp_md *ctx)
6262
{
6363
__u32 action = XDP_DROP;
6464

65-
return record_xdp_stats_action(ctx, action);
65+
return xdp_stats_record_action(ctx, action);
6666
}
6767

6868
SEC("xdp_abort")
6969
int xdp_abort_func(struct xdp_md *ctx)
7070
{
7171
__u32 action = XDP_ABORTED;
7272

73-
return record_xdp_stats_action(ctx, action);
73+
return xdp_stats_record_action(ctx, action);
7474
}
7575

7676
char _license[] SEC("license") = "GPL";

0 commit comments

Comments
 (0)