File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,11 @@ static inline struct tcx_entry *tcx_entry(struct bpf_mprog_entry *entry)
38
38
return container_of (bundle , struct tcx_entry , bundle );
39
39
}
40
40
41
- static inline struct tcx_link * tcx_link (struct bpf_link * link )
41
+ static inline struct tcx_link * tcx_link (const struct bpf_link * link )
42
42
{
43
43
return container_of (link , struct tcx_link , link );
44
44
}
45
45
46
- static inline const struct tcx_link * tcx_link_const (const struct bpf_link * link )
47
- {
48
- return tcx_link ((struct bpf_link * )link );
49
- }
50
-
51
46
void tcx_inc (void );
52
47
void tcx_dec (void );
53
48
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ static void tcx_link_dealloc(struct bpf_link *link)
250
250
251
251
static void tcx_link_fdinfo (const struct bpf_link * link , struct seq_file * seq )
252
252
{
253
- const struct tcx_link * tcx = tcx_link_const (link );
253
+ const struct tcx_link * tcx = tcx_link (link );
254
254
u32 ifindex = 0 ;
255
255
256
256
rtnl_lock ();
@@ -267,7 +267,7 @@ static void tcx_link_fdinfo(const struct bpf_link *link, struct seq_file *seq)
267
267
static int tcx_link_fill_info (const struct bpf_link * link ,
268
268
struct bpf_link_info * info )
269
269
{
270
- const struct tcx_link * tcx = tcx_link_const (link );
270
+ const struct tcx_link * tcx = tcx_link (link );
271
271
u32 ifindex = 0 ;
272
272
273
273
rtnl_lock ();
You can’t perform that action at this time.
0 commit comments