File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct bpf_map_def SEC("maps") xdp_stats_map = {
2323#endif
2424
2525static __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
6060SEC ("xdp_drop" )
6161int 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
6868SEC ("xdp_abort" )
6969int 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
7676char _license [] SEC ("license" ) = "GPL" ;
You can’t perform that action at this time.
0 commit comments